I’ve been getting this Java runtime error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
This is to do with having difficulty loading the dependent native libraries required to use Java OpenGL. It’s an issue that’s all over the net; there are some dependent files that need to be on the classpath. I’ve tried following the java -Djava.library.path "path/to/dir" method of registering the DLLs but it hasn’t seemed to help. I think it may be because I’m trying to run this application within the Netbeans IDE.
What’s odd is that I’ve downloaded the Netbeans JOGL plugin and their example application which shows off some basic OpenGL functions perfectly! I’ve searched through the code and there’s no custom DLL loading, nor is there any project-specific configuration settings that I can see. I have no idea what’s going on!
If you refer to jogamp.org’s JOGL, please have a look at our Wiki page for IDEs.
Thx to our automated native JAR library loading,
you don’t even have to set a native library path at all.
Works well w/ Eclipse – and as I heard w/ Netbeans too.
Pls don’t forget to attach the source zip file to the matching gluegen/jogl
jar file, so you can benefit from our javadoc.