diff options
Diffstat (limited to 'nailgun_launcher/NailgunLauncher.java')
-rw-r--r-- | nailgun_launcher/NailgunLauncher.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nailgun_launcher/NailgunLauncher.java b/nailgun_launcher/NailgunLauncher.java index d14e968..1eb39a8 100644 --- a/nailgun_launcher/NailgunLauncher.java +++ b/nailgun_launcher/NailgunLauncher.java @@ -72,15 +72,16 @@ public class NailgunLauncher{ return; } - new URLClassLoader( + ClassLoader cl = new URLClassLoader( new URL[]{ new URL("file:"+STAGE1+TARGET) }, classLoaderCacheValues.get( classLoaderCacheKeys.get( NAILGUN+TARGET ) ) - ) - .loadClass("cbt.Stage1") - .getMethod("main", String[].class) - .invoke( null/* _cls.newInstance()*/, (Object) args ); + ); + + cl.loadClass("cbt.Stage1") + .getMethod("main", String[].class, ClassLoader.class) + .invoke( null/* _cls.newInstance()*/, (Object) args, cl); } } |