Debugging JNLP applications

I recently had some trouble with a Java Web Start application and needed to debug. A little experimentation led to the following following Linux shell script which works a charm:

#!/bin/sh
uri=$1
export JAVAWS_TRACE_NATIVE=1
export JAVAWS_VM_ARGS=”-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8989,server=y,suspend=n”
env | grep JAVA
javaws $uri

Save it somewhere convenient, perhaps in your PATH. I saved it to ~/bin/djavaws.sh and set chmod u+x.

run with:

~/bin/djavaws.sh http://localhost:8080/logserver/webstart/launch.jnlp

No comments yet.

Write a comment: