Reputation: 133577
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..
Upvotes: 60
Views: 48965
Reputation: 21902
Done. You get a JAR file you can execute with java -jar yourfile.jar
Note that if your launcher had command line arguments, they don't get exported, you have to pass them to the java
command.
Upvotes: 0
Reputation: 1229
Exporting:
Importing:
Upvotes: 90
Reputation: 20783
Now, to run a run configuration "run-config-1" you may type on your command line (Assuming you have ant on your shell's PATH)
ant run-config-1
Upvotes: 17
Reputation: 2133
You can get the full command executed by your configuration on the Debug tab, or more specifically the Debug view.
Upvotes: 78