This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 252
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:
 
Have you checked out Aspose?
 
subject: Use Java web start to start application on the command line by the file name
 
It's not a secret anymore!