I am trying to set command line arguments in a Netbeans 7.1 Java project on Windows 7 64 bit.
Netbeans is not passing the arguments I give it.
I go to
For a Maven project using NetBeans 8.x:
An example name/value pair might resemble:
javax.persistence.jdbc.password=PASSWORD
Then run your project:
main(...).The command line parameters should appear in the Run window.
Note that to obtain the value form with the program, use System.getProperty().
Additional actions for Test file, Run project, and other ways to run the application can have arguments defined. Repeat the steps above for the different actions to accomplish this task.