Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't load the gluegen-rt.dll 64bits library

Tags:

jogl

Here are the libraries I have added:

-gluegen-rt-natives-windows-amd64

-gluegen-rt

-jogl-all-natives-windows-amd64

-jogl-all

This is the exception I get:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\KamyluKuna\Documents\NetBeansProjects\OpenGL\natives\windows-i586\\gluegen-rt.dll at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828) at java.lang.Runtime.load0(Runtime.java:792) at java.lang.System.load(System.java:1059) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:624) at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63) at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:487) at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:421) at com.jogamp.common.os.Platform$1.run(Platform.java:317) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.common.os.Platform.<clinit>(Platform.java:287) at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:147) at opengl.Lesson1.AppRoot.initGLObjects(AppRoot.java:50) at opengl.Lesson1.AppRoot.<init>(AppRoot.java:134) at opengl.Lesson1.App.<init>(App.java:14) at opengl.Lesson1.App.main(App.java:41) Java Result: 1

like image 662
Camilo Cuna Avatar asked Oct 16 '15 20:10

Camilo Cuna


Video Answer


1 Answers

You probably use a 32-bit JVM on a 64-bit operating system. Then, GlueGen tries to find the 32-bit native libraries whereas you provide only the 64-bit native libraries. Either provide the 32-bit native libraries or use a 64-bit JVM or use jogamp-fat.jar (it contains both the native libraries and the Java libraries of JogAmp) instead of using the separate JARs.

By the way, you don't indicate what you mean by "the libraries I have added". Put the JARs containing the native libraries into the same directory than the one containing the Java libraries and add the JARs containing the Java libraries into the classpath or just put jogamp-fat.jar into the classpath (the easiest and the least error prone solution).

You can follow these instructions of our wiki.

like image 181
gouessej Avatar answered Oct 17 '22 20:10

gouessej