score:77
You can get the full command executed by your configuration on the Debug tab, or more specifically the Debug view.
- Run your application
- Go to your Debug perspective
- There should be an entry in there (in the Debug View) for the app you've just executed
- Right-click the node which references java.exe or javaw.exe and select Properties
- In the dialog that pops up you'll see the Command Line which includes all jars, parameters, etc
score:0
- Right click on a project in the Eclipse explorer
- Export...
- Java -> Runnable JAR file
- Pick your launch configuration from the drop down
- Set the export destination
- Optionally, you can export that as an ANT script too
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.
score:17
- Starting with File menu
- File -> Export Expand "General" node
- Choose "Ant Buildfiles" Press "Next"
- You will get a list of projects,
- choose the project you wish to use. Press
- "finish" button As a result,
- you would get an ANT build file, which will have targets that points to your "Run configurations" for the given project.
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
score:87
Exporting:
- Go to File > Export... > Run/Debug > Launch Configurations
- In the dialog select all or what you want
- Set the filename
Importing:
- Go to File > Import... > Run/Debug > Launch Configurations
- In the dialog select all or what you want
- Set the filename
Source: stackoverflow.com
Related Query
- Eclipse: export running configuration
- Eclipse RCP: how to export launch configuration plugins?
- Eclipse removes -nosuperDevMode parameter in running configuration
- Configuration files when running java program in Eclipse IDE
- Hibernate configuration file and Eclipse project export
- Difference between export to a jar and running directly in eclipse
- eclipse - export runnable jar file not working, running works
- Running the same run configuration in eclipse multiple times
- Eclipse running lift project (project configuration issues)
- Configuration for running nutch unit tests in eclipse
- Eclipse Can Export A Java File Into A .Jar File But Keeps Running Into Errors
- Run configuration issue when running Scala in Eclipse for the first time
- Eclipse running my own configuration in debug mode
- Eclipse export runnable jar configuration
- ClassNotFoundException when running my plugins in a new eclipse configuration instance
- Java configuration not running on eclipse
- configuration of Eclipse (C++ version) for running SQLite?
- Multiple contexts with the same path error running web service in Eclipse using Tomcat
- How to share Eclipse configuration over different workspaces
- How to downgrade Java from 9 to 8 on a MACOS. Eclipse is not running with Java 9
- How can I compile a Java program in Eclipse without running it?
- Eclipse / Android : "Errors running builder 'Android Pre Compiler' on project..."
- Running a single JUnit test in Eclipse
- Can you have 2 completely independent instances of Eclipse running at the same time?
- Why is Eclipse Juno 4.2 running "JPA Java Change Event Handler" processes?
- Eclipse Java launch configuration file path
- LogCat Stops Running in Eclipse Needs Restart
- Java: export to an .jar file in eclipse
- Eclipse - Errors running builder on project
- Store run configuration with project in Eclipse
More Query from same tag
- Site to browse/get eclipse formatter profiles
- in java eclipse Memory Analyzer: Acquire Heap Dump Dialog shows no PID to acquire
- How to link Eclipse to Java EE 5 SDK?
- how i can import the websocket library to eclipse(android)
- How to send selected id in parameter using actionURL?
- How to create database connection of Postgresql server in JSP project and eclipse IDE?
- String to java.sql.Date
- Starting Eclipse on AIX throws java/lang/OutOfMemoryError
- HTTP Request on android doesnt work
- Can't Open .FXML File in SceneBuilder
- The selected wizard could not be started in eclipse for Anltr 4 .How to solve?
- MenuItem to open link with intent?
- Debug point inside the java util class
- Eclipse doesn't start after plugin installation
- java.lang.NoClassDefFoundError Main (Wrong Name : com/leslie/quiz/Main)
- Eclipse: which plugins for HTML & Javascript?
- Problems cloning 1and1 git repository in 1and1 shared Linux server with Eclipse EGit
- Where is "OSGi Deployment Package Definition" support in the latter Eclipse versions?
- How to disable nodes in JFace CheckboxTreeViewer?
- Eclipse reports syntax error in JSP file, but application works
- embedded Jetty in Eclipse RCP
- Java on Mac: Cannot read resources in executable JAR
- Generic Ant task to call generic build.xml for all projects into eclipse workpsace
- Why am i getting java.security.AccessControlException?
- Error occur while connecting to database mysql workbench:java.sql.SQLNonTransientConnectionException: Could not create connection to database server
- Overview bar in Eclipse Classic
- How to Remove Zend Studio Components from Existing Eclipse PDT?
- How to develop a Netbeans Platform Application in Eclipse?
- How do I go about creating a compiler/editor in Eclipse?
- how to fix 'object has no attribute ' error while developing openerp module?