Take the 2-minute tour ×

I know I can configure command line arguments in the Run configuration but I want to run a java file multiple times with different command line arguments. It's a pain to change the Run Configuration every time.

Is there a way I can make Eclipse prompt me for command line arguments every time I run the program?

share|improve this question

4 Answers 4

up vote 66 down vote accepted

Add string_prompt as a Program Argument in the Run configuration.


There are also a file_prompt and a folder_prompt if you want specifically files\folders.

These are available through the Variables button on the (x)= Arguments tab of the Run Configuration dialog.

share|improve this answer
Wow. I did not know Eclipse could do this. –  djangofan May 20 '13 at 23:41

This is an old question, but since I really don't see this extra info anywhere else

You can also type ${string_prompt:My Prompt Text:Default Value}

And that will pop up a window asking 'Please input a value for My Prompt Text' and then with a default value of 'Default Value'.

share|improve this answer
Thank you for the extra Prompt text and default value information. –  Jean-Michel Garcia Jul 5 '13 at 13:37

In addition you can add a string to the prompt by using ${string_prompt:My Prompt Text} which will show the dialog box with 'Please input a value for My Prompt Text'.

share|improve this answer

On linux, most desktop environments will provide a color chooser tool. In Gnome, you can use gnome-color-chooser to change the colors of some elements of the desktop. In gnome-color-chooser, in the "Entry fields", change the color of "selected". Maybe that will help.

share|improve this answer

Your Answer


