Problems using JOGL

Hello everybody.
I have a serious and strange problem:

  • I can start any Web Start demo from https://jogl-demos.dev.java.net/ and it runs fine
  • I have downloaded the latest nightly build
  • I can compile JOGL from the sources

whenever I try building a sample program, even a simple one such as

public class test1
{
public static void main(String args[])
{
System.loadLibrary(“jogl”);
}
}

I get this error message:

java.lang.UnsatisfiedLinkError: C:\javadev\JOGL-TEST\jogl.dll: Can’t find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at test1.main(test1.java:14)
Exception in thread “main” Process terminated with exit code 1

What are the dependent libraries the message refers to?
Any help?

Thanks in advance

Well, the error says which library it’s looking for. JOGL needs 2 native dlls for it to work.

You either put those dlls somewhere in your PATH or you tell java with -Djava.library.path where it can find them.

It does actually tell you this in the build documentation: https://jogl.dev.java.net/nonav/source/browse/checkout/jogl/doc/HowToBuild.html?rev=HEAD&content-type=text/html.