j2me在eclipse中编译时手机模拟器一闪就没了

来源:百度知道 编辑:UC知道 时间:2024/05/26 00:47:13
j2me在eclipse中编译时手机模拟器一闪就没了 (在新建项目时 选择支持平台时是像图中②处所示那样 而不是像①处显示那样。我就选择的是DefaultColorPhone Platform 选项。
新建项目-新建类时在New Java Class窗口中输入类名时 有“The use of the default package is discouraged.”这样的提示)

拜托各位指教一下 ,谢谢!
出现这样提示信息

java.lang.ClassNotFoundException: Hello
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Scheduler.schedule(+52)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)
Execution completed.
3379016 bytecodes executed
51 thread switches
1667 classes in the system (including system classes)
25008 dynamic objects allocated (1200044 bytes)
2 garbage collections (649644 bytes collected

那肯定是你的代码写的有问题,ClassNotFoundException,这个问题出现的可能很多呀,意思是指定的类不存在,看看你的运行路径有没有问题,其他的原因没有代码就不太清楚了。

重启Eclipse 还不行就是你的代码有问题。
Eclipse也经常出问题