开发者

Running multiple instances of an application with different arguments using eclipse

开发者 https://www.devze.com 2023-03-06 02:48 出处:网络
I\'m trying to build client server program. So I should run my program simultaneously with diffrent ports.

I'm trying to build client server program. So I should run my program simultaneously with diffrent ports. The program gets the port through 开发者_开发技巧the arguments.

What is the way to do that? Thank you


When creating launch configurations (as @Konstantin mentions) and adding parameters to the Arguments>Program Arguments tab you can use a variable so that eclipse will ask you for the parameter on every launch. ex: -port ${string_prompt}


If you pull down the menu under the Run toolbar button, you will see "Run Configurations...". This will open a dialog to let you define any number of launch configurations. Then use this pull-down menu to launch your app with different parameters using different launch configurations.

0

精彩评论

暂无评论...
验证码 换一张
取 消