aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeffpk <[email protected]>2003-10-01 22:45:55 +0000
committerjeffpk <[email protected]>2003-10-01 22:45:55 +0000
commit6975cc0f0c3ada36383c5e2f27c41e02e71aab86 (patch)
tree3fcffa2628c5bfca1e90b5bef7721d249c4f1699 /src
parent528cc4b92981cd2f2c0102d49727bbbfb32765a9 (diff)
<No Comment Entered>
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jutils/trunk@17 052365b4-98e0-4bc5-a281-465471b020e0
Diffstat (limited to 'src')
-rw-r--r--src/java/net/java/games/util/plugins/PluginLoader.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/java/net/java/games/util/plugins/PluginLoader.java b/src/java/net/java/games/util/plugins/PluginLoader.java
index e2f1754..00545eb 100644
--- a/src/java/net/java/games/util/plugins/PluginLoader.java
+++ b/src/java/net/java/games/util/plugins/PluginLoader.java
@@ -81,7 +81,8 @@ public class PluginLoader extends URLClassLoader {
* legitimate Jar file.
*/
public PluginLoader(File jf) throws MalformedURLException {
- super(new URL[] {jf.toURL()});
+ super(new URL[] {jf.toURL()},
+ Thread.currentThread().getContextClassLoader());
parentDir = jf.getParentFile();
if (System.getProperty("net.java.games.util.plugins.nolocalnative")
!=null){
@@ -99,6 +100,12 @@ public class PluginLoader extends URLClassLoader {
* created to support. This allows different Plugins
* with supporting DLLs of the same name to co-exist, each
* in their own subdirectory.
+ *
+ * Setting the global "localDLLs" by setting the property
+ * net.java.games.util.plugins.nolocalnative defeats this behavior.
+ * This is necessary for Java Web Start apps which have strong
+ * restrictions on where and how native libs can be loaded.
+ *
* @param libname The JNI name of the native library to locate.
* @return Returns a string describing the actual loation of the
* native library in the native file system.