Beginner has problem in running JOGL

Dear all,

I have problem in running JGOL.

I cannot find the “dll” file from the latest JOGL release. Instead, I find jogl.jar and jogl-native-win32.jar from
https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=3726&expandFolder=3726&folderID=2771

I put all jar files to the lib\ext directory of jdk and jre directory. It works when I compile the file, but it fails when I run the file. The following message come out:

Exception in thread “main” java.lang.UnsatisfiedLinkError: no jogl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.jogl.impl.NativeLibLoader.load(NativeLibLoader.java:58)
at net.java.games.jogl.impl.GLContext.(GLContext.java:52)
at net.java.games.jogl.impl.windows.WindowsGLContextFactory.createGLContext(WindowsGLContextFactory.java:147)
at net.java.games.jogl.GLCanvas.(GLCanvas.java:72)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:150)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:118)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:85)
at JoglApp1.main(JoglApp1.java:48)

    please help me~~

The dll is inside jogl-native-win32.jar. To get things working extract the dll from the jar and place it under /jre/bin or /bin.

you must extract the native jar
use winrar or something
to open with winrar right click and select open with :wink:
then you will find 2 dlls which u can extract

oh~ thanks a lot ;D

I had a similar problem. Now, i was smart enough to pack up the DLL’s and place them in the directory you mentioned. To be sure i placed them in ALL bin-directories in my Java installation tree, hehe. Nevertheless, i still get errors.

It’s said that jogl.dll “can’t find dependent libraries” as i run the following:
System.loadLibrary (“jogl”);
and the message that appears on the screen says something about jawt.dll not being found. Of course i’ve checked that it indeed IS in the very same directory. Any suggestions how to handle this?

Thanks!

Checkout this thread:
http://192.18.37.44/forums/index.php?topic=10262.msg81213