JOGL exception. Cannot find gluegenrt in java.library.path

An exception was thrown in the main stream java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path in java.lang.ClassLoader.loadLibrary (ClassLoader.java:1860) in java.lang.Runtime.loadLibrary0 (Runtime.java: 845) at java.lang.System.loadLibrary (System.java:1084) at com.jogamp.gluegen.runtime.NativeLibLoader.loadLibraryInternal (NativeLibLoader.java:102) at com.jogamp.gluegen.runtime.NativeLibLoader.access $ 000 ( NativeLibLoader.java:51) in com.jogamp.gluegen.runtime.NativeLibLoader $ 1.run (NativeLibLoader.java:70) in java.security.AccessController.doPrivileged (own method) on com.jogamp.gluegen.runtime.NativeLibLoader.loadGlueen (NativeLibLoader.java:68) at com.jogamp.common.jvm.JVMUtil. (JVMUtil.java:56) at javax.media.opengl.GLProfile. (GLProfile.java:1051) at HelloWorld.main (HelloWorld.java:14)

So, I get this wonderful exception every time I try to run a training JOGL file. I desperately tried everything I could. Adding all possible libraries for jogl and gluegen, including:

jogl.jar jogl.all.jar locals glued native gluegen and google for macosx

Everything, and it says that there is no klegen library, although it is obvious. -.- I read about jnilib files somewhere and tried to put them in folders with jar files, but still no luck.

I am using Eclipse, by the way.

+5
source share
1 answer

, gluegen-rt , , " " Eclipse, . Linux,

  • .
  • Run As → Run Configurations...
  • " "
  • "..."
  • : LD_LIBRARY_PATH : /usr/lib64/jogl:/usr/lib64/gluegen
  • "", "", ""

Mac OSX , , DYLD_FALLBACK_LIBRARY_PATH DYLD_LIBRARY_PATH LD_LIBRARY_PATH, JOGL Gluegen . , , .so Linux, .jnilib Mac OSX.

-1

All Articles