J2ME学习笔记_1_开发环境的安装和配置

来源:互联网 发布:北大青鸟学士后java 编辑:程序博客网 时间:2024/05/02 04:46

1.需要的软件:

eclipse 3.0.1: http://www.eclipse.org/downloads/index.php

eclipseME 0.7.5 : http://sourceforge.net/project/showfiles.php?group_id=86829&package_id=90314&release_id=300856

J2SE5.0/1.4.2(均可) : http://java.sun.com/j2se/index.jsp

J2ME Wireless Toolkit 2.2(提供了模拟器) : http://java.sun.com/products/j2mewtoolkit/download-2_2.html

MIDP2.0开发文档 : http://java.sun.com/j2me/docs/index.html

2.安装:

先说说eclipseME的安装.

    在eclipse中菜单栏中的 Help-->Software Updates-->Find and install-->选中 search for new  features to install-->Next-->add Archived site-->选中eclipseme.feature_0.7.5_site.zip-->选中复选框eclipseme.feature_0.7.5_site.zip-->next-->next-->选中"I accept..."-->next-->选择安装目录(建议默认)--->finish-->install-->yes

    eclipse重启后--->菜单window--->preferences-->J2ME-->platform components-->(右键)wireless toolkits-->add wirteless toolkits-->选中J2ME Wireless Toolkit 2.2的安装目录-->OK

再说说如何将开发文档集成到eclipse中,从而可以方便的按"F1"键呼出.

    新建一个J2ME项目--->在package explorer窗口中右击该项目--->属性(properties)--->java build path--->展开j2me library-->展开midpapi.jar--->双击javadoc location--->选择javadoc in archive--->在archive path中填入midp文档的压缩包位置--->在path within archive中要填"package-list"文件在压缩包中的位置--->OK

原创粉丝点击