no jogl in java library path
If you work with OpenGL in Java you might stumble upon this error when trying to run the program although you added the jogl libraries to the build path:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
Solution:
First step: Make sure you added all the required libraries to the build path. The files which I am using for all my OpenGL applications are: gluegen-rt.dll, gluegen-rt.jar, jogl_awt.dll, jogl_cg.dll, jogl.dll and jogl.jar.
Second step: Write the following line to the VM arguments (not Program arguments): -Djava.library.path=lib, where lib is the directory where the jogl libraries are found. In Eclipse the VM arguments can be found in the Arguments tab from Run Configurations, under the Program arguments.
This should do it!











