Exception JOGL using wrong library?
Posted by adanecito on Feb 04, 2014; 4:04pm
URL: https://forum.jogamp.org/Exception-JOGL-using-wrong-library-tp4031437.html
Hi All,
I am using JOGL for the Mac OSX and when open a JPanel that uses it I get an exception about not having a native library but the library is the windows one. I am using Java 1.7.0_45 for the Mac and JOGL 2.1.0 Implementation version, 2.1 Specification Version and 2.1-b1111-20131010 Implementation build. Why would the JOGL library on the Mac ask for a windows native library? Here is the exception trace.
Here is the trace when the exception is thrown:
NLPClassLoader: Finding library libnativewindow_awt.dylib
JNLPClassLoader: Finding library libnativewindow_awt.dylib
JNLPClassLoader: Finding library libnativewindow_awt.dylib
Exception in thread "AWT-EventQueue-2" java.lang.UnsatisfiedLinkError: Can't load library: /System/Library/Frameworks/nativewindow_awt.Framework/nativewindow_awt
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1083)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:548)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:95)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:412)
at jogamp.nativewindow.NWJNILibLoader.access$000(NWJNILibLoader.java:39)
at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:48)
at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:41)
at java.security.AccessController.doPrivileged(Native Method)
at jogamp.nativewindow.NWJNILibLoader.loadNativeWindow(NWJNILibLoader.java:41)
at jogamp.nativewindow.jawt.JAWTUtil.<clinit>(JAWTUtil.java:300)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:340)
at javax.media.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:323)
at javax.media.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:320)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:320)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1495)
at javax.media.opengl.GLProfile.access$100(GLProfile.java:76)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:123)
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:2013)
at javax.media.opengl.GLProfile.get(GLProfile.java:892)
at javax.media.opengl.GLProfile.get(GLProfile.java:921)
at javax.media.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:674)
at gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile(Unknown Source)
at gov.nasa.worldwind.Configuration.getRequiredGLCapabilities(Unknown Source)
at gov.nasa.worldwind.awt.WorldWindowGLJPanel.<init>(Unknown Source)
Thanks for any help.
-Tony