Passing Arguments to an Application launched by Java Web Start
843802Dec 10 2004 — edited Dec 13 2004How do we pass arguments to an application deployed using Java Web Start (similar to -Dname=value)
We are using a JNLP as shown below:
The "arguments" tag shown below does not work.
<application-desc main-class="myClass">
<argument>-DArg1="value1"</argument>
<argument>-DArg2="value2"</argument>
<argument>-DArg3="value3"</argument>
</application-desc>
The code in "myClass" is unable to get the arguments through the environment or from System.getProperties
We have even tried the following:
1. property tag
<property>name="Arg1" value="value1"</property>
2. resource and property tag
<resource>
<property>name="Arg1" value="value1"</property>
</resource>
3. application and property tag
<application-desc>
<property>name="Arg1" value="value1"</property>
</application-desc>
Would someone please help us out of this !
Thanks,