Eclipse 3.5 has an option to package required libraries into the runnable jar.
File -> Export…
Choose runnable jar and click next.
The runnable jar export window has a radio button where you can choose to package the required libraries into the jar.
More Related Contents:
- Eclipse “Error: Could not find or load main class”
- I am getting “java.lang.ClassNotFoundException: com.google.gson.Gson” error even though it is defined in my classpath
- How to import a jar in Eclipse?
- How to create a jar with external libraries included in Eclipse?
- Call “java -jar MyFile.jar” with additional classpath option
- Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)
- Eclipse error: “The import XXX cannot be resolved”
- Eclipse: Attach source/javadoc to a library via a local property
- Eclipse is confused by imports (“accessible from more than one module”)
- Differences between “java -cp” and “java -jar”?
- Build project into a JAR automatically in Eclipse
- Execute jar file with multiple classpath libraries from command prompt
- include external jar when running java -jar
- Classpath resource within jar
- Updating .class file in jar
- Finding unused jars used in an eclipse project
- Including jar files in class path
- 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
- Adding 3rd party jars to WEB-INF/lib automatically using Eclipse/Tomcat
- how to export (JUnit) test suite as executable jar
- Eclipse Java; export jar, include referenced libraries, without fatjar
- In Eclipse, what is the difference between modulepath and classpath?
- How to create a executable jar file for Testng and the runnnig point should be the Xml file
- Dynamically loading plugin jars using ServiceLoader
- 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?
- Set folder for classpath [duplicate]