Launching run configuration outside Eclipse IDE

lucks picture lucks · Mar 14, 2011 · Viewed 8.7k times · Source

I have a run configuration defined for my Eclipse RCP application which is saved to a .launch file. Is there a way to use this launch configuration outside the Eclipse IDE? i.e, it would be nice to be able to launch the application from the command line for continuous integration purposes.

Answer

Peter Tseng picture Peter Tseng · Jun 27, 2013

You can get the command line Eclipse uses:

  1. Run your program in Eclipse
  2. Go to the "Debug" view
  3. Right-click on the process (probably the second item in the tree) and select "Properties"
  4. Copy shell command and delete the agentlib flag to run in bash. Unfortunately, you need to do this whenever you change the configuration.