How to pass console arguments to application in eclipse?

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

    From "Run" go to debug/run configurations. Click the tab called "Arguments". You can give the program arguments there.

    0 讨论(0)
  • 2020-11-27 16:26

    Run configurations > Arguments tab. Just put "127.0.0.1" 9876 in the program arguments.

    0 讨论(0)
提交回复
热议问题