|
From: Max S. <MSt...@li...> - 2003-06-26 15:24:14
|
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.
Max
|