Eclipse plugin - UnsatisfiedLinkError when trying to initialize JOGL
When I try to initialize JOGL using GLProfile.initSingleton(false);
inside the start
method of my plugin Activator I get the following Exception:
java.lang.UnsatisfiedLinkError: jogamp.nativewindow.windows.GDI.initIDs0()Z
I'm including the required native libraries using the OSGi Manifest entry Bundle-NativeCode
.
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Nativewindow
Bundle-SymbolicName: lib.nativewindow;singleton:=true
Bundle-Version: 2.0.0.rc2
Bundle-ClassPath: nativewindow.all.jar
Export-Package: com.jogamp.nativewindow,
javax.media.nativewindow,
javax.media.nativewindow.awt,
javax.media.nativewindow.egl,
javax.media.nativewindow.macosx,
javax.media.nativewindow.util,
javax.media.nativewindow.windows,
javax.media.nativewindow.x11,
jogamp.nativewindow,
jogamp.nativewindow.awt,
jogamp.nativewindow.jawt,
jogamp.nativewindow.jawt.macosx,
jogamp.nativewindow.jawt.windows,
jogamp.nativewindow.jawt.x11,
jogamp.nativewindow.swt,
jogamp.nativewindow.windows,
jogamp.nativewin开发者_JAVA百科dow.x11
Require-Bundle: lib.gluegen;bundle-version="2.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-NativeCode: native/windows/i586/nativewindow_awt.dll; native/windows/i586/ nativewindow_win32.dll; osname=win32; processor=x86,
native/windows/amd64/nativewindow_awt.dll; native/windows/amd64/nativewindow_win32.dll; osname=win32; processor=x86-64,
native/macosx/libnativewindow_awt.jnilib; osname=maxosx; processor=x86,
native/macosx/libnativewindow_awt.jnilib; osname=maxosx; processor=ppc,
native/linux/i586/libnativewindow_awt.so; native/linux/i586/libnativewindow_x11.so; osname=linux; processor=x86,
native/linux/amd64/libnativewindow_awt.so; native/linux/amd64/libnativewindow_x11.so; osname=linux; processor=x86-64
I double-checked the native library paths and they do point to the correct files.
Now, what did I do wrong?
精彩评论