J
JavaEnquirer
I have a Java application which runs fine when launched from the
command line, picking up any args that I pass.
This application also launches using Java Web Start, except for the
fact that any args passed in the <argument> tags of the jnlp file seem
to end up as null when referenced from the main method.
Has anyone experienced similar problems? Here's the jnlp file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://fitits010162:8080/moose"
href="mapping.jnlp">
<information>
<title>Demo Application</title>
<vendor>Blah</vendor>
<homepage href="help.html"/>
<description>An App</description>
<description kind="short">A description</description>
<icon href="1.gif"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5"/>
<jar href="mapping.jar"/>
</resources>
<application-desc>
<argument>DAVID</argument>
<argument>JONES</argument>
</application-desc>
</jnlp>
Also, I've tried putting the argument values in single and double
quotes, tried different numbers of arguments and different types, but
to no avail. Tried values with an without spaces and escaping with %20.
Also, tried referenceing the main class in the <application-desc> tag
etc etc etc
Remeber, the app launches, but the arguments get lost somehow?
Many thanks in advance!
command line, picking up any args that I pass.
This application also launches using Java Web Start, except for the
fact that any args passed in the <argument> tags of the jnlp file seem
to end up as null when referenced from the main method.
Has anyone experienced similar problems? Here's the jnlp file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://fitits010162:8080/moose"
href="mapping.jnlp">
<information>
<title>Demo Application</title>
<vendor>Blah</vendor>
<homepage href="help.html"/>
<description>An App</description>
<description kind="short">A description</description>
<icon href="1.gif"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5"/>
<jar href="mapping.jar"/>
</resources>
<application-desc>
<argument>DAVID</argument>
<argument>JONES</argument>
</application-desc>
</jnlp>
Also, I've tried putting the argument values in single and double
quotes, tried different numbers of arguments and different types, but
to no avail. Tried values with an without spaces and escaping with %20.
Also, tried referenceing the main class in the <application-desc> tag
etc etc etc
Remeber, the app launches, but the arguments get lost somehow?
Many thanks in advance!