user756223
user756223

Reputation: 51

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

Upvotes: 0

Views: 1616

Answers (2)

Paul Webster
Paul Webster

Reputation: 10654

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}

Upvotes: 3

Konstantin Komissarchik
Konstantin Komissarchik

Reputation: 29139

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.

Upvotes: 1

Related Questions