This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use Java web start to start application on the command line by the file name
 
Similar Threads
Use Eclipse to run JNLP
missing from the launch file: jnlp
problem with Persistence.createEntityManagerFactory
Problem launching app through web-server
find out the variables' value in the jnlp file