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?
A fully working command-line Terminal inside Eclipse. Just press Ctrl+Alt+T to open a local command prompt (Terminal).
option. You can test command line arguments by running an executable from the "Command Prompt" in XP, Vista or later, or from the "DOS prompt" in older versions of Windows. You can also use command line arguments in program shortcuts, or when running an application by using Start -> Run.
Add string_prompt as a Program Argument in the Run configuration.
${string_prompt} 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With