Java - Eclipse IDE

When you run the program through Eclipse, you can provide the command as arguments that will be stored in the arguments of String [], how can you on the command line?

+3
source share
6 answers

Simply specify these arguments in the Run Configuration menu (Arguments tab) of your project.

+4
source

Yes.

If you click on the arrow next to the Run button, you can open the Run Configuration menu. You can specify both program arguments (which are passed to the args [] parameter in your main method), as well as virtual machine arguments.

+4
source

.

+3

Yes. Click "Run-Run." Then select the run configuration, select the Arguments tab, and enter the arguments in the Arguments text area.

+3
source

Yes. The easiest way is to right-click on the class you want to run and select

Run As->Run Configurations

There is a tab for adding arguments.

+2
source

As Run configuurationyou can specify it here in this place.

enter image description here

+1
source

All Articles