安装ME SDK 3.0.5时无法运行旧的Java SE应用程序

时间:2012-03-04 00:25:28

标签: java netbeans java-me

我安装了Java ME SDK 3.0.5来创建MIDlet但是只要它加入NetBeans我就无法运行以前没有的SE应用程序。例如,我收到错误消息

C:\Documents and Settings\user\.netbeans\7.0\var\cache\executor-snippets\run.xml:52: C:\Documents and Settings\user\My Documents\NetBeansProjects\Hw2_1\work is not a valid directory at org.apache.tools.ant.taskdefs.Java.setupWorkingDir(Java.java:855) at org.apache.tools.ant.taskdefs.Java.setupExecutable(Java.java:825) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:788) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) Java Result: -1

来自之前工作得很好的应用。可能是什么造成的?

1 个答案:

答案 0 :(得分:3)

找到它,需要NetBeans更新。我在这里给出了链接,以防其他人遇到同样的问题并且碰巧读到这个。

Java ME SDK团队博客 - Update Java ME SDK through Update Center

  

我们发现在为NB安装Java ME SDK 3.0.5插件后,您无法再运行Java SE应用程序了。此问题现已修复,但您需要通过更新中心进行更新。这是一个循序渐进的指南...