• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

find out the variables' value in the jnlp file

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
Ranch Hand
Posts: 81
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic