wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes find out the variables' value in the jnlp file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "find out the variables Watch "find out the variables New topic
Author

find out the variables' value in the jnlp file

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:
javaws http://localhost:7001/webstart/myapp/launch.jnlp

How to find out the variables' value ($$codebase, $$name, etc) in the launch.jnlp file?
Is there a "println" or "echo" command?

The launch.jnlp file is as follows:
sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

The "$$codebase" is a token that the JnlpDownloadServlet replaces with the codebase at the time of the request.

I don't think there is any way to echo or print variables in JNLP , but once you start web start application on your desktop. Go to Java in control panel and select application you are referring to. You can view JNLP by clicking "show jnlp" button on top panel. I think that should show the exact value of codebase derived to your local machine.

SCJP SCWCD AIX SOA
The significant problems we face cannot be solved by the same level of thinking that created them -- Albert Einstein

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: find out the variables' value in the jnlp file
 
Similar Threads
Use Eclipse to run JNLP
certificate error
running Eclipse RCP application from JWS: jws starts, but closes immediatly
Use Java web start to start application on the command line by the file name
AccessControlException