Common Problem installing JOGL

Hello Fellow Java Users.
I am trying to get into JOGL so I can create demos and basically play around with it. I am having a issue installing JOGL and running it.

My Setup: Windows XP, JCreator LE 2.5.0 , Java SDK 1.5

I can’t seem to get the HelloWorld example to run.
In Jcreator it will compile fine, but when I try to run it from the IDE it doesn’t work.

I put the jogl.jar in: D:\Program Files\Java\jdk1.5.0_03\jre\lib\ext

I also put the dll in:D:\Program Files\Java\jdk1.5.0_03\jre\bin

I also added the jar file to the library tab in the project settings inside Jcreator

The error message I get is:


Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Program Files\Java
\jdk1.5.0_03\jre\bin\jogl.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:1668)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at HelloWorld.main(HelloWorld.java:7)
Press any key to continue...

Thanks in advance.

Hi, I don’t know Jcreator by it should have a way to pass command lines arguments to the launched jvm. Try to add -Djava.library.path=<path_to_jogl.dll> it should works.

Yeah im not at all advanced in stuff like that, I have no idea where the command line is.

You know the JOGL file called “jogl-natives-win32.jar”.

Extract it with Winzip or the equivalent.
Copy the extracted files into this directory:

“C:\Program Files\Java\jre1.5.0_02\bin”

Then JOGL should work.
I would also advise you learn how to package your libraries with your software and use them together. The people who use your products don’t want to do anything but click and run.

Sorry to be a bother, I did what you said straightforward and it still gives same error

I had the same problem - try this:

riekof wrote:
Assuming you are on windows. If you open a dos window and enter “SET” and press return, you’ll see all your system variables. One will be PATH.

You can update your PATH thru Control Panel–>System–>Advanced–>Environment Variables.

You can tell your Java version by just typeing “java -version” at a commond prompt. If this says something like ‘command java not found’, then you don’t have the java executable in your path.

The path I needed to add was this. I also put the jogl DLLs in that dir.

C:\jdk1.5.0_01\jre\bin;

Thank you everyone for your time!
What arkdm posted seemed to work!!

I don’t know why mine was broke this was, I am on a fresh windows install.

But again thanks guys!