3

How to include JOGL.jar and Gluegen-rt.jar in the java project? I have included these external jars in the eclipse, but when I try to create a Jar file of the project, the JAR file does not exceute. It says That JOGL.jar is missing.

How can I include these libraries? Any suggestions are welcome.

2

2 Answers 2

2

How can I include these libraries? Any suggestions are welcome.

Either you distribute multiple jar-files, and make sure the referenced jar-files are mentioned in the classpath in the manifest of your application.

However, since you say "include" I suspect you want to "merge" the jar files into a single jar file. In that case you need to merge the jars using software such as OneJar or FatJar.

Sign up to request clarification or add additional context in comments.

2 Comments

Additional possibility with Maven: Create a jar-with-dependencies.
If the OP is using Eclipse, he/she should have a "make fat-jar" option when right-clicking the project.
0

Check whether the jar is there in the classpath.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.