Thursday, November 10, 2011

RMI Registry port may be used error

I have got a new (a bit more powerful) workstation and was installing everything there. I started downloading all new versions of the tools that I have been using, like new Eclipse, JDK 1.7 etc.

Then when I ran Nokia S40 5th edition emulator, I go this error:

The internal RMI registry port 1099 may be in use by another application.

I tried to change the port, killed all other java apps, but no luck.

In the end, the problem turned out to be a jdk/jre bug. Apparently, the bug surfaced since 1.6 u 29. Here is the bug report. in sdk release note.

So switching to older JDK should fix the problem. I uninstalled jdk and installed JDK1.6 update 23 and it's working fine now!