Remote debugging a Java WebStart Application

2008-10-02 by mira

These are brief instructions on how to do remote debugging with Java WebStart.

To debug a WebStart application in Java 6, start it we remote debugging enabled;

   -J-Xdebug -J-Xnoagent

Then connect your debugger to the specified port (here: 8200)

If the debugger cannot connect, verify with netstat that no Personal Firewall or AntiVirus is blocking the connection.

To achieve the same with Java versions prior 6 (1.4, 5), set the environment variable JAVAWS_VM_ARGS to the arguments above, but only write ‘-J’ once before the first argument.

set JAVAWS_VM_ARGS=-J-Xdebug -Xnoagent
C:\Programme\java\jre1.6.0_01\bin\javaws.exe c:\foo.jnlp