To debug a Web Start application on Linux, create a shell script ~ / bin / javaws-debug.sh with javaws in debug mode, as described above:
~ / bin / javaws-debug.sh:
#!/bin/sh export JAVAWS_TRACE_NATIVE=1 export JAVAWS_VM_ARGS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8989,server=y,suspend=n" javaws "$@"
Then in your browser, select the script as the application to invoke in jnlp files.
For example, in Firefox, go to "Edit" โ "Settings" โ "Applications", "Content Type: Java Web Start" and select "Use Other" in action and select a script in the "Select a Helper Application" dialog box. In Chrome, you need to change your Linux system settings. In KDE, go to "System Preferences" โ "File Associations", "Known Types": application: x-java-jnlp file, add a new application, select ~ / bin / javaws-debug.sh from "Select Application for Application / x -java -jnlp-file ".
After setting up your browser, the Java Web Start application will start using your shell, which will allow the debugger to connect to port 8989.
Nicholas Sushkin Jun 14 '13 at 16:49 2013-06-14 16:49
source share