Running multiple instances of an application with different arguments using eclipse
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.
精彩评论