GeeCON Prague 2014*
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


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:
 
GeeCON Prague 2014
 
subject: Use Java web start to start application on the command line by the file name