How to execute command line argument program in eclipse

1. Click on run in eclipse menu.

command line 1

 

2. Click on Run Configurations…

command line2

 

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.

command line3

 

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.

 

Content Protection by DMCA.com
Please Share