Mapsy
Mapsy

Reputation: 4272

Strange issues when loading JOGL

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!

Upvotes: 1

Views: 259

Answers (2)

Sven Gothel
Sven Gothel

Reputation: 141

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.

Upvotes: 2

olamedia
olamedia

Reputation: 188

Check the setting of example application. For example, in eclipse you should add jars into build path (which can be accessed from project settings)

Also u can try this plugin: http://plugins.netbeans.org/plugin/11451/addtolibrary

Upvotes: 0

Related Questions