Hi,

Netbeans 6.5 is working for me.  Below are a few things to check.

1. Go to Projects tab.
2. Right click on you project folder, i.e: MyOwnCommandLineArguments.
3. Select Properties from the pop up menu.
4. Select Run.
5. In the window that pops up there should be a Label called
Arguments:
6. Type in your names and ages delimited by spaces, i.e: Alvin 35
Betty 33 Donny 12 Casey 10 Louie 8 Dewey 6

It should work. If not, in your program you might want to check the
size of your array. If your argument list
is exceeding your array size I think it will throw an exception - not
sure though, I'm in the learning phase too.

Muddling my way through.
C.Coppock

On Jan 12, 11:03 am, ewer <[email protected]> wrote:
> Hi,
>
> On 12 Jan., 16:00, "Ahmet Süreyya Rifaioğlu"
>
> <[email protected]> wrote:
> > Hi,
> > I am using NetBeans version 6.1. I worked before on command line arguments.
>
> I have 6.5 here.
>
> > But now when I pass arguments to my programs, it gives" Exception in thread
> > "main" java.lang.ArrayIndexOutOfBoundsException: 0" error. I checked the
> > length of the array(args ), it says no argument passed. I worked the program
>
> How have you passed the arguments to the program running inside the
> Netbeans IDE?
> When I set the arguments in the "Run"-Section of the properties
> Windows for the
> started configuration I get the arguments.
>
> > in a different IDE. It worked. What might be the problem?
>
> Hopefully you have just only not set the arguments in the project
> dialog.
>
> HTH
> Ewald

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to