Select you project, then Export
=> Java
=> Runnable JAR file
You can then choose to extract/package/copy required libraries into your JAR and also select the class, whose main()
method should be executed on startup.
Then you can execute the generated jar via:
java -jar yourjar.jar
More Related Contents:
- How to import a jar in Eclipse?
- How to create a jar with external libraries included in Eclipse?
- Eclipse exported Runnable JAR not showing images
- Runnable JARs missing Images/Files (Resources)
- Eclipse: How to build an executable jar with external jar?
- Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)
- Eclipse “Error: Could not find or load main class”
- Eclipse error: “The import XXX cannot be resolved”
- How to change JDK version for an Eclipse project
- Eclipse: Attach source/javadoc to a library via a local property
- Eclipse is confused by imports (“accessible from more than one module”)
- Build project into a JAR automatically in Eclipse
- Updating .class file in jar
- Finding unused jars used in an eclipse project
- how to create jar file using eclipse
- “Could not find the main class” error when running jar exported by Eclipse
- How to includes all images in jar file using eclipse
- How to package resources in Jar properly
- Cannot find Main Class in File Compiled With Ant
- Adding 3rd party jars to WEB-INF/lib automatically using Eclipse/Tomcat
- I am getting “java.lang.ClassNotFoundException: com.google.gson.Gson” error even though it is defined in my classpath
- how to export (JUnit) test suite as executable jar
- Eclipse Java; export jar, include referenced libraries, without fatjar
- How to create a executable jar file for Testng and the runnnig point should be the Xml file
- eclipse: how to debug a Java program as a .jar file?
- Java: How do I know which jar file to use given a class name?
- Loading ImageIcon from JAR or file system
- Including external jar-files in a new jar-file build with Ant
- Access restriction on class due to restriction on required library rt.jar?
- adding non-code resources to jar file using Ant