刚开始接触J2ME,把WTK25中的demo复制到Eclipse中,然后运行的时候弹出一个提示框,信息如下:
No midlets defined in JAD File.
Continue?
选择yes后控制台输出如下信息后:
Warning: Running JAM, Ignoring all other options (but "-Xheapsize", and OTA flags if provided)
正在通过存储根 MediaControlSkin 来运行
Running with locale: Chinese_People's Republic of China.936
The MIDlet suite was not found.
Execution completed.
3389435 bytecodes executed
25 thread switches
1644 classes in the system (including system classes)
17361 dynamic objects allocated (521168 bytes)
1 garbage collections (0 bytes collected)
然后手机的界面闪了一下就消失了。
但是通过WTK25的管理工具来演示demo一切正常,高手指点,谢谢
------解决方案--------------------------------------------------------
在你的项目根目录下应该有个和项目同名的jad文件。双击打开。
最下边有一排选项,Required,Midlets,Optional,OTA,User Defined,
选中Midlets标签->Add。
Name,Icon,Class分别填上就行了。