java.lang.UnsatisfiedLinkError: gluPerspective

I started getting this error after I installed the lastest release of jogl’s libraries, but I’ve reverted back to the previous release and I get the same error as well so I’m not sure what the problem is.

Basically it is telling me that the glu native methods have not been loaded, which is strange because this code was working before just fine.

I am having a similar problem although it is from a “fresh start” point of view. I have installed jogl on my Linux (SuSE) box and putting the shared object in /jre/lib/i386 seemed to do the trick. When I try that under my XP box things do not work. 1st off not sure if I should install the jogllib.jar or dearchive the .jar and install the jogl.lib directly. I tried both and almost every (except the one in the system directories, one should not have to put them there) dir in the java.library.path variable. Any suggestions?

I’m currently using it on the latest release of OSX and I’m not having any trouble:


            glu.gluPerspective( fov, aspectRatio, near, far );

It pains me to not have a free moment to look into this one, but I must get JInput OSX out of the way…

If it was up to me I’d be running on OSX, however, “IT policy” dictates I use a Win32 based system for my desktop. such is life. Until I get an XP person’s advice I’ll use my Linux box to test out JOGL. Thanx for the reply anyway.

After some searching in the forum I found my solution here:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1058909391

I dearchived the jogllib.jar and copied the 3 files to my jre/bin dir and now I’m OK. funny that, it’ll be a good day when JOGL will come with an installer :slight_smile:

Ok I fix the problem by checking out where java.library.path is pointing. My library path appears to have been modified from my sdk1.4.2 to a jre1.4.2 that I recently installed.

Thanx for the responses hope this helps others who might end up installing a new sdk or jre and forget to move the jogl jars/dll’s to the new path.

[quote]Ok I fix the problem by checking out where java.library.path is pointing. My library path appears to have been modified from my sdk1.4.2 to a jre1.4.2 that I recently installed.

Thanx for the responses hope this helps others who might end up installing a new sdk or jre and forget to move the jogl jars/dll’s to the new path.
[/quote]
That’s why I insist that its a bad bad idea to install JOGL into a JRE or WebStart specific directory until Sun comes up with a mechanism for moving installed libraries during JRE, JDK, WebStart upgrades. You’ll just end up kicking yourself later…

I’ve had this same problem. I currently use the -D flag when I launch my program. I ended up comparing the jogl.dll that was in my -Dpath to the jogl.dll that was in the jogllib.jar. They were different, so I extracted the jogllib.jar file from the jar file and over wrote the other one. Everything works fine for me now.

Coop