Args in Eclipse
When you run a Java Application in Eclipse, Eclipse constructs and executes the java command line behind the scenes.
You can pass command line arguments without switching to a terminal from Eclipse.
- With your class selected go to the Run Configurations dialog either from the Run menu at the top of Eclipse, or by right-clicking on your class and going to the Run As... submenu.


- In the Run Configurations dialog go to the Arguments tab.

- Add your arguments to the Program arguments text box one per line, or separated by at least one space character.

- Click Run