Mismatched Files? Mac OS X error

First off i’d like to thank anyone reading for helping ahead of time, i know these types of topics must be an eye sore on these forums.

Here is my dilema: I"m trying to get my school-owned laptop in school to work with JOGL. All the files are in /library/java/Extensions, as they should be (by all i mean jogl.jar, libjogl.jnilib, and libjogl_cg.jnilib). I have my project (in Eclipse) pointing to the jogl.jar, as it should, and, as i’m using 1.1.1, i call it with the “import net. …” version of the import.

Now unless that messup is incorrect it should work, but it doesn’t. System.load(“JOGL”) throws the common error of it not working, and when i run my code i get the Java.lang.UnsatisfiedLinkError. These two things signify that i did the setup incorrectly. However there is an oddity to the error. In the first two calls to OpenGl Methods:

GLCapabilities capabilities = new GLCapabilities();
canvas =
GLDrawableFactory.getFactory().createGLCanvas(capabilities);

the error is thrown on the SECOND line, not the first. Secondly, i have uninstantiated variables by the names of GraphicsDevice device; and GLCanvas Canvas at the top of my class, which the runtime goes through and doesn’t hit an error.

So with apparently some lines working, and others not, and the .jar as a whole not loading, but my files in the right spot, my conclusion is i must have mismatched .jar and .jnilib files. Now before i put all my hopes into this (i’ve gone through three days of agony mulling over this), could someone add some validity or some clarity to this situation. Thanks again.

Edit: it may or may not be helpful, but I’ve succesfully ran JOGL on a PC, with all sorts of crazy coding goodies happening, it’s just macs i dont’ understand. Also i did aquire the .jnilib’s from another source than the .jar, which is further proof that it may be a mismatch, but those errors just seem so typical of “you put the libraries in the wrong spot”

Put the libjogl.jnilib into some directory, e.g., /Users/me/jogl/ . Then

setenv DYLD_LIBRARY_PATH /Users/me/jogl

Then from within that shell the JOGL code should be able to find the native libraries. You can also add that to your .cshrc (assuming you run csh/tcsh). You’d need to change that to bash syntax if that’s your shell.

Honestly i’m not sure how to do that, and unfortunately id dint’ get to read it before i went to school. But thankfully, i was right. With a little more research i found out i was using the 321 jnilib files with the 1.1 .jar file, and by just replacing the jnilib files with the proper ones, it worked, thankfully.

i do appreciate your help though.