On Feb 2, 12:38 pm, Arne Vajh?j<a...@vajhoej.dk> wrote:
On 02-02-2011 10:34, albert kao wrote:
I can use Java web start to start my Swing GUI application on the
command line by the url:
javawshttp://localhost:7001/webstart/myapp/launch.jnlp
How to use Java web start to start my Swing GUI application on the
command line by the file name?
The following ways do not work:
javaws -codebase "" -J-Xrunjdwp:transport=dt_socket launch.jnlp
javaws -J-Xdebug -J-Xnoagent -J-
Xrunjdwp:transport=dt_socket,server=n,suspend=y launch.jnlp
javaws -codebase "" -J-Xrunjdwp:transport=dt_socket,server=n,suspend=n
launch.jnlp
javaws -codebase "" -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n
launch.jnlp
javaws -codebase "" launch.jnlp
javaws -codebase '' launch.jnlp
Try one of:
file://launch.jnlp
file:///C:/somedir/launch.jnlp
Both
file://launch.jnlp
file:///C:/somedir/launch.jnlp
will result in the error:
com.sun.deploy.net.FailedDownloadException: Unable to load resource:
javaws -codebase "" launch.jnlp
java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.sun.javaws.Main.parseArgs(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
That lines was not one I suggested.