diff options
author | Sven Gothel <[email protected]> | 2012-05-04 05:29:27 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-05-04 05:29:27 +0200 |
commit | 137e58ba482e20822ff313716e0d2d9d56587dd9 (patch) | |
tree | d6aa944fadd0c0e3166efda9a367515dcfb1485f /src/nativewindow/classes/jogamp | |
parent | d6d01f747a096dd22fc01226d01c57b99ed9d2a5 (diff) |
Adapt to GlueGen commit cc76889a6fe96cffb91c9a3aa7934878c0ecd97e: Use ClassLoader to find JNI native libraries
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/NWJNILibLoader.java | 2 | ||||
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTJNILibLoader.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/NWJNILibLoader.java b/src/nativewindow/classes/jogamp/nativewindow/NWJNILibLoader.java index be41ad719..99bc71c4a 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/NWJNILibLoader.java +++ b/src/nativewindow/classes/jogamp/nativewindow/NWJNILibLoader.java @@ -46,7 +46,7 @@ public class NWJNILibLoader extends JNILibLoaderBase { if(TempJarCache.isInitialized() && null == TempJarCache.findLibrary(libName)) { addNativeJarLibs(NWJNILibLoader.class, "jogl-all", new String[] { "nativewindow" } ); } - return new Boolean(loadLibrary(libName, false)); + return new Boolean(loadLibrary(libName, false, NWJNILibLoader.class.getClassLoader())); } }).booleanValue(); } diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTJNILibLoader.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTJNILibLoader.java index 354bb83e3..2377c2be6 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTJNILibLoader.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTJNILibLoader.java @@ -62,7 +62,7 @@ public class JAWTJNILibLoader extends NWJNILibLoader { // default library path if ( ! NativeWindowFactory.TYPE_MACOSX.equals( NativeWindowFactory.getNativeWindowType(false) ) ) { try { - loadLibrary("jawt", null, true); + loadLibrary("jawt", null, true, JAWTJNILibLoader.class.getClassLoader()); } catch (Throwable t) { // It might be ok .. if it's already loaded if(DEBUG) { |