This discussion is archived
2 Replies Latest reply: Mar 14, 2010 10:19 PM by 843849 RSS

Fatal Error with Java ME Device Manager and SDK Updates

843849 Newbie
Currently Being Moderated
I recently installed the Java ME 3 EA SDK Platform which looks promising. Everything seem to work fine. In the process of new updates and the desire to remove some older versions of Java, I installed a new Java versions (1.6.0_11) and removed some old ones (1.6_0_04 and 1.6_0_10).

Following this whenever I startup my machine, following the attempted start of the Java ME Device Manager, I get a "Fatal Error: Cannot start child. Error code: 0" dialog.

Following this I get an exception indicating: Connection refused: connect
     at Method)
     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(
     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(
     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
Caused: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: Connection refused: connect
     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
     at sun.rmi.transport.tcp.TCPChannel.createConnection(
     at sun.rmi.transport.tcp.TCPChannel.newConnection(
     at sun.rmi.server.UnicastRef.newCall(
     at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
     at com.sun.jndi.rmi.registry.RegistryContext.lookup(
Caused: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: Connection refused: connect]
     at com.sun.jndi.rmi.registry.RegistryContext.lookup(
     at com.sun.jndi.toolkit.url.GenericURLContext.lookup(
     at javax.naming.InitialContext.lookup(
Caused: Failed to retrieve RMIServer stub
     at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
     at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
     at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.lookupMBean(Unknown Source)
     at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.findObject(Unknown Source)
     at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.openConnection(
     at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(
     at org.netbeans.modules.j2me.cdc.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(
     at org.netbeans.modules.j2me.cdc.platform.jme_sdk.autoinstaller.AutoInstaller.restored(
     at org.netbeans.core.startup.NbInstaller.loadCode(
     at org.netbeans.core.startup.NbInstaller.load(
     at org.netbeans.ModuleManager.enable(
     at org.netbeans.core.startup.ModuleList.installNew(
     at org.netbeans.core.startup.ModuleList.trigger(
     at org.netbeans.core.startup.ModuleSystem.restore(
     at org.netbeans.core.startup.Main.getModuleSystem(
     at org.netbeans.core.startup.Main.start(
[catch] at

When I try to start the SDK itself, I also get "Cannot find java.exe in specified jdkhome. Neither E:\java\jdk1.6.0_10\jre\bin\java.exe or E:\java\jdk11.6.0.0_10\bin\java.exe exists. Do you want to try to use default version?". This also happens with I try starting Netbeans as well.

When I say No, it appears to not start at all. When I say Yes, it appears to try to start but I continually get errors as listed above for the Java ME Device Manager startup error.

After reinstalling the _10 version, things started to work again, so I suspect this is due to my removal of the an older version of the JDK.

How is the proper way to "update" without causing similar errors? Are the environment variable JAVA_HOME, JAVA2_HOME, or some other variable used to specify the JDK/JRE in use? I would rather not be forced to change my startup each time to specify a -jdkhome related parameter.

Should I install the new version, find install the "Java Platform" in the SDK/Netbeans, set it as


How do you set the default version from within the SDK/Netbeans?

And is there a way to prevent the Device Manager from starting?