Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: export running configuration

I wrote a complex Java application with eclipse that uses many .jar libraries included into project folder.

Is there a quick way to export a running configuration of the application that allows me to run it from shell (I don't actually need to move it around machines, so no jar export or similar things).

I just need to detach the execution from Eclipse, but since project has many settings I would like to export a script (maybe .sh or just a plain long line) automatically..

like image 278
Jack Avatar asked Mar 23 '10 18:03

Jack


People also ask

Where is Eclipse run configuration stored?

These configrations are located in . metadata/. plugins/org. eclipse.

What is a launch configuration file in Eclipse?

In Eclipse, a launch configuration contains all the information to run or debug a program. A DS-5 debug launch configuration typically describes the target to connect to, the communication protocol or probe to use, the application to load on the target, and debug information to load in the debugger.


2 Answers

Exporting:

  1. Go to File > Export... > Run/Debug > Launch Configurations
  2. In the dialog select all or what you want
  3. Set the filename

Importing:

  1. Go to File > Import... > Run/Debug > Launch Configurations
  2. In the dialog select all or what you want
  3. Set the filename
like image 97
VlatkoB Avatar answered Sep 21 '22 09:09

VlatkoB


You can get the full command executed by your configuration on the Debug tab, or more specifically the Debug view.

  1. Run your application
  2. Go to your Debug perspective
  3. There should be an entry in there (in the Debug View) for the app you've just executed
  4. Right-click the node which references java.exe or javaw.exe and select Properties
  5. In the dialog that pops up you'll see the Command Line which includes all jars, parameters, etc
like image 42
Adrian Avatar answered Sep 22 '22 09:09

Adrian