I downloaded JOGL . Created a project in the Idea. And tried to run the "Hello World" program. As a result, I received the following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at com.jogamp.gluegen.runtime.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:117) at com.jogamp.gluegen.runtime.NativeLibLoader.access$000(NativeLibLoader.java:51) at com.jogamp.gluegen.runtime.NativeLibLoader$1.run(NativeLibLoader.java:70) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.gluegen.runtime.NativeLibLoader.loadGlueGenRT(NativeLibLoader.java:68) at com.jogamp.common.jvm.JVMUtil.<clinit>(JVMUtil.java:56) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:1145) at EntryPoint.main(EntryPoint.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
This is the very first line in the code:
// setup OpenGL Version 2 GLProfile profile = GLProfile.get(GLProfile.GL2); When I brought the value of java.library.path to the console, there really wasn’t a folder with JOGL. I assumed that this value should be added to the environment variable. But it still does not work. Maybe I specified the wrong folder or the wrong variable ...