aspose file tools*
The moose likes JNLP and Web Start and the fly likes Use Java web start to start application on the command line by the file name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Use Java web start to start application on the command line by the file name" Watch "Use Java web start to start application on the command line by the file name" New topic
Author

Use Java web start to start application on the command line by the file name

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
I can use Java web start to start my Swing GUI application on the command line by the url with jdk 6 & Windows XP:
javaws http://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

The launch.jnlp file is as follows:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Use Java web start to start application on the command line by the file name