Ok thanks it works now,with java MyClass args1
metasi

"Paul Clapham" <pclapham@core-mark.com> wrote:
>When you run your program, you do this:
>
>java yourClass arg1 arg2 arg3 arg4...
>
>If you're using a development environment, I don't know, check in the help
>associated with the "Run" option or whatever you are using to run your
>program.
>
>"metasi" <e.j.developer@juventusfan.com> wrote in message
>news:3add5a6e$1@news.devx.com...
>>
>> Hi everyone,i'm a jnewbie and i need help.
>> How can i enable my program to get command line inputs?i tried this
>>
>> main(String[] args){
>> String = args[0];
>> ..
>> }
>> and I got java.lang.ArrayIndexOutOfBoundsException.
>>
>> thank you
>> metasi
>>

>
>