Merge pull request #410 from ChrisMickelson/ChrisMickelson-patch-1

Chris mickelson patch 1
This commit is contained in:
Wes Cravens 2018-05-31 09:34:06 -05:00 committed by GitHub
commit 9e63fa6398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
.idea/compiler.xml generated
View File

@ -19,4 +19,4 @@
</profile> </profile>
</annotationProcessing> </annotationProcessing>
</component> </component>
</project> </project>

View File

@ -30,7 +30,7 @@ public class JarInJarStarter {
} }
URL[] urlArray = urls.toArray(new URL[0]); URL[] urlArray = urls.toArray(new URL[0]);
ClassLoader loader = new URLClassLoader(urlArray); ClassLoader loader = new URLClassLoader(urlArray, null);
try { try {
Thread.currentThread().setContextClassLoader(loader); Thread.currentThread().setContextClassLoader(loader);
Class<?> c = Class.forName(mainClass, true, loader); Class<?> c = Class.forName(mainClass, true, loader);