Reputation: 3114
I have asked about how to use command line argument in netbeans
in stackoverflow and they tell me to read this article and also I read its comments but when i run this program it will return "no command line argument" and I don't know what should I do? please guide me more about it.thanks
also one comment in that article is :
You may have had the same problem that I had...
The path to your run-time command line args is stored in the netbeans private.properties file as
"application.args=".
You may have overridden your private.properties file with an entry in your build.xml of
target name="-init-private" depends="-pre-init"
If you have, then args[] won't get picked up at runtime unless you create an overriding entry in your project.properties file to replace the one that should be picked up from your private.properties.
And I couldn't get what he mean ,please guide me step by step because really I am beginner.
Upvotes: 0
Views: 257
Reputation: 274582
Did you add the arguments to the run dialog box as shown in the screenshot?
Upvotes: 1