This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "find out the variables Watch "find out the variables New topic

find out the variables' value in the jnlp file

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:
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.

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:
subject: find out the variables' value in the jnlp file
It's not a secret anymore!