Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing Arguments to an Application launched by Java Web Start

843802Dec 10 2004 — edited Dec 13 2004
How 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,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2005
Added on Dec 10 2004
3 comments
498 views