Java开发环境搭建全过程(下)
第三部分 J2ME环境搭建
1,在 http://java.sun.com/products/sjwtoolkit/zh_download-2_2.html
下载WTK2.2及其补丁
2. 安装WTK2.2到F:\WTK22,
3. 在 http://sourceforge.net/project/showfiles.php?group_id=86829
下载EclipseMe
4.“帮助—》软件更新—》查找并安装”,如下图:
在这选“新建本地站点”,定位到F:\eclipseme,如下图:
按所给提示安装,重新启动后,“窗口-》首选项”,如果看到下图,就说明EclipseMe安装成功了,在这里要指定WTK2.2的安装目录
然后就是要引入设备管理:
5. 接下来就是用HelloWorld来对EclipseMe进行测试了,
到这里为止,创建的是MIDlet Suite,一般也称作MIDlet应用程序套件,可以包含一个或多个MIDlet,只是在发布时是以MIDlet Suite为单位进行。实质性的工作都是在MIDlet中完成的。因此,需要继续添加MIDlet到项目。在导航器上点击鼠标右键,从弹出菜单中选择"新建"、"其他"菜单项启动上图所示对话框,选择J2ME下的J2ME Midlet子项后进入下一步:
修改自动产生的代码如下:
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6. 现在来运行程序
哈哈,终于大功告成了,可爱的”Hello,World”出来了,^o^。。。
作者:洞庭散人
出处:http://phinecos.cnblogs.com/
posted on 2006-06-03 10:31 Phinecos(洞庭散人) 阅读(1087) 评论(0) 编辑 收藏 举报