Problem with Command Line Arguments
Hi all -
I need help. I cannot get my JWS to read my command line arguments.
I have read all the other postings on command line arguments and JWS and I've modeled mine after them, but I still cannot get them to work.
Here's my jnlp file:
<jnlp spec="1.0" codebase="http://devwblgc01:9001/testjws" href="myTest.jnlp">
<information>
<title>My Test</title>
<vendor>Coral Energy</vendor>
<homepage href="http://www.msn.com"/>
<description>Test Client Application</description>
<description kind="short">An applicationfor check out</description>
<icon href="blank.gif"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.3"/>
<property name="java.naming.provider.url" value="t3://devwblgc01:9001"/>
<property name="java.naming.factory.initial" value="weblogic.jndi.T3InitialContextFactory"/>
<jar href="smyTest.jar" main="true" download="eager"/>
<jar href="sweblogicaux.jar"/>
<jar href="stibrvj.jar"/>
<jar href="sweblogicClasses.jar"/>
<jar href="sShared.jar"/>
</resources>
<application-desc main-class="com.coral.application.mytest.MyTest"/>
<argument>"one"</argument>
</application-desc>
</jnlp>
and here'smy main method:
publicclass MyTest
{
publicstaticvoid main(String[] args){
System.out.println("Number of args = " + args.length);
for (int i = 0; i < args.length; i++)
System.out.println(args[i]);
}
}
And here's the output:
Java Web Start Console, started Tue Jul 24 14:00:53 CDT 2001
Java 2 Runtime Environment: Version 1.3.0 by Sun Microsystems Inc.
Logging to file: C:\temp\log.tmp
Number of args = 0
The number of args is always zero. I've tried with quotes, without quotes etc etc. But no luck. What am I doing wrong?
Thanks in advance!
DAU

