|
From: Leif M. <le...@ta...> - 2003-07-02 05:39:55
|
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.
>
|