File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 239
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:
 
 
subject: Use Java web start to start application on the command line by the file name
 
Similar Threads
problem with Persistence.createEntityManagerFactory
Problem launching app through web-server
find out the variables' value in the jnlp file
Use Eclipse to run JNLP
missing from the launch file: jnlp