How to pass console arguments to application in eclipse?

前端 未结 8 1517
广开言路
广开言路 2020-11-27 16:03

I have the following line in a batch file.

java Client \"127.0.0.1\" 9876

It contains the name of my java class and two arguments. My applicatio

8条回答
  •  再見小時候
    2020-11-27 16:19

    1. Right-click on your project.
    2. Go to Debug As > Debug Configurations or Run As > Run Configurations.
    3. Click the tab that says Arguments.
    4. Enter in your Program Arguments
    5. Click Apply or Debug

    enter image description here

提交回复
热议问题