How can I add command line parameters to the JVM in Eclipse? For example, let\'s say I want to explicitly add -cp argument when running the JVM, is it possible? (I am giving
You can specify vm arguments when creating a "Run Configuration" in Eclipse. Right-click on your project > Run Configuration > Java Application > Arguments tab.
Run --> Run Configurations --> Arguments
In the Run menu, there is an entry "Run Configurations", which allows you to configure everything about the spawned JVM. It has a tab to set the classpath, and another called "Arguments" where you can set JVM parameters.