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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With