File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes pass parameter bye javaws 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 "pass parameter bye javaws" Watch "pass parameter bye javaws" New topic

pass parameter bye javaws

mickey hendrix

Joined: May 08, 2005
Posts: 19
how can I set a vm paramter like -Dsomevariable for my swing client application that I download by javaws?
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
In your JNLP, you add the argument to the application-desc element

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Sudeep Agrawal
Ranch Hand

Joined: May 31, 2006
Posts: 34
Did you try the property tag in the JNLP ?
<property name = "someName" value ="myValue">

the way you can access it is System.getProperty("someName") in the Java code .
I agree. Here's the link:
subject: pass parameter bye javaws
It's not a secret anymore!