3 Replies Latest reply: Jan 11, 2012 11:14 AM by Alexander Burdukov RSS

    J2ME SDK 3.0.5 Plugin Causing Problems in IDE


      After I installed the new JAVA ME Plugin for 3.0.5 SDK and integrated with my Netbeans IDE, I cannot run my other projects that is not JavaME based. It gives an error saying the execution directory is wrong. It complains "work is not a valid directory". This is produced by your plugin because I ran the IDE with a new user directory and just installed your plugin. I am using JDK 1.6 update 29 on WinXP SP3 32-bit.

      Here is a produced exception of a simple Hello World application that prints a "Hello World" string which can't even execute:

      C:\Documents and Settings\User\.netbeans\6.9\var\cache\executor-snippets\run.xml:52: D:\Project\HelloWorld\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.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      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:1397)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
      at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:281)
      at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
      at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
      Java Result: -1
        • 1. Re: J2ME SDK 3.0.5 Plugin Causing Problems in IDE
          I just want to add that the Netbeans IDE I used is 6.9.1 when I produced the exception. It is also giving same problems in 7.0.1.
          • 2. Re: J2ME SDK 3.0.5 Plugin Causing Problems in IDE
            I am seeing the same behavior with 7.0.1

            I think I will file a bug.
            • 3. Re: J2ME SDK 3.0.5 Plugin Causing Problems in IDE
              Alexander Burdukov
              The issue is resolved. You have to update Java ME SDK 3.0.5 to obtain the fix:

              1. Ensure that you have downloaded and installed the latest Java ME SDK 3.0.5 (published on Dec 23, 2011). In the updated 3.0.5 release we have added the Japanese and simplified Chinese localizations and "Update Center" feature that is required to obtain the fix.

              2. Run Update Center either from Start menu or from Netbeans "Java ME" menu (in this case you should install Netbeans integration during Java ME SDK installation).

              3. Install "Java ME SDK Tools Netbeans Update Site" via Update Center.

              4. Restart Netbeans IDE.

              5. In Netbeans, go to Tools -> Plugins, Reload Catalog and install "Utilities" update from "Java ME SDK Tools" category.

              That's it.

              For more details refer to corresponding blog post at: http://blogs.oracle.com/javamesdk/entry/update_java_me_sdk_through

              Alexander Burdukov, Engineering Manager for Java ME SDK product.