Hi all,
I’m currently trying to do a single JAR build for an application that uses JOGL. To allow user to just double click on the JAR file to run it, I need to load the native libraries first, including JOGL’s. I basically based my native libs loader on JOGLAppletLauncher as to how the JOGL native libraries are loaded there.
So in my program I call System.loadLibrary(“jawt”) before I load jogl.dll and jogl_awt.dll.
But afterwards I got stuck in the jawt loading, with the error stack trace as below:
Exception in thread “main” java.lang.UnsatisfiedLinkError: C:\Program Files\Java
\jre1.6.0\bin\jawt.dll: Can’t find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at iro.iro.Test.main(Test.java:7)
Now…Is the only way of solving this is by putting the C:\Program Files\Java\jre1.6.0\bin into system Path?
Because if that is the case, then we need to make sure the users have the proper directory path in their environment variables…quite risky…
If I’m seeing or handling this error in a wrong way, please let me know
Thanks in advanced for any suggestion or opinion