Midlets执行问题
使用 Java ME 平台 SDK 3.0。
我打开一个新项目并执行它,但是如果我尝试从新项目> midlet开始执行一个,这是用hello world创建的并且这项工作,但如果我在类>新项目>类中构建代码..并且我写扩展 midlet 实现命令侦听器 amm 它不起作用,我没有得到任何错误,如果我复制所有代码并将其粘贴到“新项目> midlet”中,然后删除它的所有内容并粘贴我的代码,它会始终工作嗯,当名称为默认“HelloMidlet”时,我只看两件事......
安装应用程序 (如果我打开它,它会显示:输入要安装的网站) 管理证书颁发机构
我重复一遍,如果我使用默认名称“hellomidlet”,它确实可以工作(使用我的自我代码),但如果我更改此名称,它就不起作用......
*错误* 从 http://127.0.0.1:51612/MobileApplication2.jad 部署应用程序时出现问题 原因: JAR 损坏,读取时出错:hello/HelloMIDlet.class
Using Java ME Platform SDK 3.0.
I open a new project and it is executed, but if i try to do one since new project>midlet this is create with hello world and this work but if i build the code in a class >new project>class.. and i write extends midlet implements command listener amm it doesn't work am dont get any bug and if i copy all my code and i paste it in a "new project>midlet" and i delete all it has and i paste my code, it does work mmm always and when the name was for default "HelloMidlet" i just watch two things...
INSTALL APPLICATION
(if i open it it has : enter a website to install)
MANAGE CERTIFICATE AUTHORITIES
i repet if i let the default name "hellomidlet" it does work (with my self code) but if i change this name it doesn't work..
* Error *
A problem occured during deploying application from http://127.0.0.1:51612/MobileApplication2.jad
Reason:
Corrupt JAR, error while reading: hello/HelloMIDlet.class
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可能只需要在项目设置中设置 MIDlet 类名...
进入应用程序描述符 -> MIDlet 设置,并确保其中的类名与扩展 MIDlet 的类的名称相匹配。
I think you likely just have to set the MIDlet class name in the project settings...
Go into the Application Descriptor -> MIDlet settings, and make sure the classname there matches the name of your class that extends MIDlet.