how to add command line parameters when running java code in Eclipse?

You can specify vm arguments when creating a “Run Configuration” in Eclipse. Right-click on your project > Run Configuration > Java Application > Arguments tab.

enter image description here

enter image description here

Leave a Comment