How to pass console arguments to application in eclipse?

前端 未结 8 1509
广开言路
广开言路 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:10

    Run-> Run Configurations->Arguments->Enter your arguments separated by space->Apply->Run Ensure that the right project name and it's main method are selected under "the Main" tab under run configurations

提交回复
热议问题