I get an error when I try to run my JOGL code, here is the code:
import javax.media.opengl.GLCapabilities;
public class Jogl {
public static void main (String args[]) {
try {
System.loadLibrary("jogl");
System.out.println(
"Hello World! (The native libraries are installed.)"
);
GLCapabilities cap = new GLCapabilities(null);
System.out.println(
"Hello JOGL! (The jar appears to be available.)"
);
} catch (Exception e) {
System.out.println(e);
}
}
}
The error is:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1119) at Jogl.main(Jogl.java:5)
I have just gone through the JOGL installation tutorial on their wiki.
jogl-all-natives-*.jarfiles to your classpath? - Marco13jogl-all.jar, and you probably added this by right-clicking it in Eclipse, and selecting "Add to build path". You can do the same with thejogl-all-natives-windows-amd64.jar(or whatever JAR is the right one for your system...) - Marco13