我已经用j2me 3.0和3.0.5在NetBeans 7.1中开发了一个j2me应用程序。几天前,在不影响启动的代码发生重大变化之前,它运行得很好。现在尝试运行应用程序时,它会启动模拟器,但无法启动应用程序。输出如下:
Starting emulator in execution mode
Installing suite from: http://127.0.0.1:16200/BuitenBeter.jad
Processing UPDATE_CLASS关闭模拟器时,以下错误显示:
*** Error ***
Failed to execute MIDlet suite
C:\Users\Willem\Documents\NetBeansProjects\BuitenBeter\nbproject\build-impl.xml:782: Execution failed with error code 1.
BUILD FAILED (total time: 1 minute 16 seconds)它指向的xml是:
<!--cldc-run-->
<target name="cldc-run" if="cldc-platform.trigger">
<nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
</target>所以我假设CLDC无法运行。
当我创建一个包含"Hello“代码的空新项目时,它在相同的配置下运行良好。即:
3.0.5
我尝试过使用SDK3.0,我尝试过没有所有可选的包,我尝试使用CLDC-1.1.1。但是,当选择CLDC-1.1.1时,它会自动执行以下操作:
Platform UEI-1.0.1 does not support "CLDC-1.1.1" configuration, setting back to CLDC-1.1.到目前为止,在谷歌搜索之后,我尝试了以下解决方案:
NetBeans
有人能告诉我出了什么问题或者我能做些什么来解决这个问题吗?
发布于 2012-09-29 10:31:10
下载最新版本似乎为我解决了这个问题。我正在运行-产品版本: NetBeans IDE 7.2 (构建201207171143) - Java: 1.7.0_03;Java HotSpot(TM)客户端VM 22.1-b02
现在一切都很顺利。不幸的是,netbeans的更新功能不起作用,所以您需要卸载当前的netbeans,下载并安装一个新实例。
https://stackoverflow.com/questions/9442868
复制相似问题