On Jul 13, 9:15 am, snoopdok <[email protected]> wrote:
> Hi, I am having problems with inputing command line arguments in
> Netbeans.
>
> the PROBLEM:
>
> I right click on my project and go to "Properties",
> from there i input my argument in the "Arguments" field, then save
> I run the program and it show's that my args string is 0 in length
> meaning it has not recieved my arguments.
>
> Previously this worked and i could run programs which included command
> line agruments
> but all of sudden its not reading my arguments that i have put in the
> "arguments" field in the properties of the project..
>
> To double check, i went into cmd window through "run" in start options
> in windows,
> and did the manual javac <java file>, then java <java file> <command
> line argument>
> and this method works! with the same project i have trouble in
> Netbeans..
>
> This only concludes that my Netbeans is somehow not reading my
> arguments.. but i am new to Netbeans..
> Does anyone else have this problem?? it was working just the other
> day... and even the project that worked couple days ago.. is now not
> working... if anyone can help, it would be great.
I would check the following in project's properties:

I - in sources
1 - source/binary format (preferably the same as the jdk)
2 - encoding (preferably utf-8)

II - in library
1 - the right JDK

II - in run
1 - Arguments without any quotes either single or double, and just
space to separate the arguments

Then, eventually clean and build right-clicking on the project
Then run.


--~--~---------~--~----~------------~-------~--~----~
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