How to pass console arguments to application in eclipse?

Instead of just hitting the “Run” icon, select the dropdown box next to it, and choose “Run Configurations”. Find your application (or create a Run Configuration for it) and put the command line arguments in the “Arguments” tab. See the docs for more information. It should look like this:

enter image description here

Leave a Comment