1. Click on run in eclipse menu.
2. Click on Run Configurations…
3. You will see program window. Select your program for which you are passing arguments. Then Click on arguments tab. Enter your arguments in program arguments section.
4. Click on run button. Your program will execute.
Next Topic: How to read input from command line in Java using Scanner.
Previous Topic: Command line arguments in java with example.