日期:2014-05-20  浏览次数:21212 次

eclipseme写的HelloWorld,然后打包的问题!
首先说明一下,我是个绝对的新手,了解J2me才两天时间;然后说说我用环境:eclipse+wtk2.2+eclipseme1.7.3。

我遇到的问题是打的包不能运行,我是在项目上右击,j2me-》create   package,打包的,也试过j2me-》create   obfuscated   package,但是都出现问题,具体是报com.sun.kvem.midletsuite.InvalidJadException:   Reason   =   22
The   manifest   or   the   application   descriptor   MUST   contain   the   attribute:   MIDlet-1的问题,我在eclipse的环境下可以正常运行。也在网上找了很多资料,好像是说eclipseme自带了一个叫Application   Descriptor   Editor编辑的界面里设置,打包的一些参数,但是我就是没有找到这个设置界面,导致我现在没有办法配置jad文件。
打包后的jad文件内容:
MIDlet-Jar-Size:   1257
MIDlet-Jar-URL:   newj2me.jar
MIDlet-Name:   newj2me   Midlet   Suite
MIDlet-Vendor:   Midlet   Suite   Vendor
MIDlet-Version:   1.0.3
MicroEdition-Configuration:   CLDC-1.1
MicroEdition-Profile:   MIDP-2.0

jar包中MANIFEST.MF文件内容:
Manifest-Version:   1.0
MicroEdition-Configuration:   CLDC-1.1
MIDlet-Name:   newj2me   Midlet   Suite
MIDlet-Vendor:   Midlet   Suite   Vendor
MIDlet-Version:   1.0.3
MicroEdition-Profile:   MIDP-2.0


在提问前我搜索过相关的帖子,问题现在我明白了,但是不知道在那里配置。
具体就是找不到这个http://www.cnjm.net/eclipseme/docs/jadeditor.html里面的EclipseME自带了一个JAD编辑器。


希望前辈们能多多指点!谢谢!解决了马上送分!

------解决方案--------------------
直接在JAD中修改
MicroEdition-Configuration: CLDC-1.1为
MicroEdition-Configuration: CLDC-1.0
------解决方案--------------------
我也非常关注这个问题,期待高人的回复。
------解决方案--------------------
你的项目里面有.jad文件,在eclipse里面双击打开它就是Application Descriptor Editor编辑的界面了``
------解决方案--------------------
你什么手机?支持MIDP2.0 CLDC1.1吗?