Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trouble loading JOGL (OpenGL) libraries, java.lang.UnsatisfiedLinkError

843829Oct 18 2005
Hello everyone.

Ok, I went over to jogl.dev.java.net and downloaded jogl.jar and the native files. I extracted jogl.jar to Program Files/java/jre1.5.0_04/lib/ext and the natives to Program Files/java/jre1.5.0_04/bin. I then put the DLL's extracted from the natives into the C:\Windows\System32 (also added the bin directory to the PATH environmental variable, but it couldnt find the jogl.DLL for some reason).

So i then I write this little piece of code to test if TextPad can find the library:

public class Greeting {
public static void main(String[] args) {
System.loadLibrary("jogl");
}
}

And I get the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\j
ogl.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at Greeting.main(Greeting.java:7)
Press any key to continue . . .

So it find's jogl.dll happily enough, but not the dependent libraries. I'm a noob to all this, so not really sure what a Dependent Library is or where I can find it, can anyone help?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2005
Added on Oct 18 2005
0 comments
148 views