How to Send command line arguments in Eclipse?
If you use the Eclipse IDE, and want to be able to send command line arguments to your application, then there is an easy solution.
Firstly, select & highlight the class you are working on:
http://www.javaprogrammingforums.com/images/args1.jpg
Go to Run > Run Configurations
http://www.javaprogrammingforums.com/images/args2.jpg
Select the Arguments tab
http://www.javaprogrammingforums.com/images/args3.jpg
In the Program arguments box, you can put whatever arguments you wish the same as if you were specifying them on the command line.
http://www.javaprogrammingforums.com/images/args4.jpg
In this case, we want to send the argument dictionary.txt
Once you have filled in the Program arguments box, click Apply. Or if you wish to run the application, click Run
Done! This command line argument will be sent every time you compile the code.