|
From: Max S. <MSt...@li...> - 2003-07-02 14:02:23
|
Leif,
Thanks for replying to my message. Actually, I did not get this working
and I still can't pass command line parameters to my service. What I was
able to get working is the interactive mode for my service, so that I can
display a dialog, but it was mainly my fault on why it was not working.
Thanks again. Please let me know what I should do to get command line
parameters working.
Max
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]
Sent: Wednesday, July 02, 2003 12:40 AM
To: wra...@li...
Subject: Re: [Wrapper-user] Passing command line parameters to Java App
Max,
From the offline messages with Bill Littman that were then forwarded to
me, it
looks like you got this working? Could you post what was wrong for the
benefit of
the list? Also, was this something that the Wrapper was not handling
correctly?
Cheers,
Leif
Max Stolyarov wrote:
Hello,
I am running into a problem when trying to pass command line arguments
to my application using wrapper configuration file. In documentation, it was
mentioned that I should use Wrapper.app.parameter<n> to do that.
So, if my command line looks like - "java package.MyApp c:\MyApp\list.bat" I
should break it down in the following matter in the configuration file:
Wrapper.app.parameter.1 = package.MyApp
Wrapper.app.parameter.2 = "c:\MyApp\list.bat"
I tried this, but the wrapper log file shows that
ArrayIndexOutofBoundException is being thrown by my main method when trying
to read args[0] in the following code:
Public static void main( Strings[] args) {
String path = args[0];
}
Can someone please help me and let me know what I am doing wrong. Thanks in
advance.
|