diff options
author | Sven Gothel <[email protected]> | 2011-09-21 20:52:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-21 20:52:10 +0200 |
commit | def691b009132463f8ec8efabd0d72768235dcf5 (patch) | |
tree | 574ce12a6bd1ff12b93faaac70c36f3dc5256364 /src/java/com/jogamp/common/os | |
parent | 0e44b330403011558391c732a0b6240694ecb6a1 (diff) |
Unify JNI Library Loading into JNILibLoaderBase and use it for the gluegen-rt native lib as well
- removed redundance
- move proper JNLPAppletLauncher custom libloader code into JNILibLoaderBase
- prepares for new JAR temp cache ..
Diffstat (limited to 'src/java/com/jogamp/common/os')
-rwxr-xr-x | src/java/com/jogamp/common/os/DynamicLibraryBundle.java | 4 | ||||
-rwxr-xr-x | src/java/com/jogamp/common/os/NativeLibrary.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java index 23e1714..b7e0739 100755 --- a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java +++ b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java @@ -250,7 +250,7 @@ public class DynamicLibraryBundle implements DynamicLookupHelper { boolean ignoreError = true; boolean res; try { - res = GlueJNILibLoaderBase.loadLibrary(libName, ignoreError); + res = GlueJNILibLoader.loadLibrary(libName, ignoreError); if(DEBUG && !res) { System.err.println("Info: Could not load JNI/Glue library: "+libName); } @@ -339,7 +339,7 @@ public class DynamicLibraryBundle implements DynamicLookupHelper { } /** Inherit access */ - static class GlueJNILibLoaderBase extends JNILibLoaderBase { + static class GlueJNILibLoader extends JNILibLoaderBase { protected static synchronized boolean loadLibrary(String libname, boolean ignoreError) { return JNILibLoaderBase.loadLibrary(libname, ignoreError); } diff --git a/src/java/com/jogamp/common/os/NativeLibrary.java b/src/java/com/jogamp/common/os/NativeLibrary.java index beee639..c8dfdf1 100755 --- a/src/java/com/jogamp/common/os/NativeLibrary.java +++ b/src/java/com/jogamp/common/os/NativeLibrary.java @@ -41,7 +41,7 @@ package com.jogamp.common.os; import com.jogamp.common.util.IOUtil; -import com.jogamp.gluegen.runtime.NativeLibLoader; +import com.jogamp.gluegen.runtime.GlueGenJNILibLoader; import jogamp.common.Debug; import jogamp.common.os.MacOSXDynamicLinkerImpl; import jogamp.common.os.UnixDynamicLinkerImpl; @@ -175,7 +175,7 @@ public class NativeLibrary implements DynamicLookupHelper { if (DEBUG) { System.err.println("Trying to load " + path); } - NativeLibLoader.loadGlueGenRT(); + GlueGenJNILibLoader.loadGlueGenRT(); long res; if(global) { res = dynLink.openLibraryGlobal(path, DEBUG); |