Try run on diff thread
This commit is contained in:
1 parent
77841af1b9
commit
06802c7077
2 files changed
+6
-4
No files matched your search
@@ -83,19 +83,18 @@ public final class Tools
|
||||
}
|
||||
}
|
||||
|
||||
// new Thread(() -> { try {
|
||||
new Thread(() -> { try {
|
||||
|
||||
URLClassLoader loader = new URLClassLoader(urlList.toArray(new URL[0]), Tools.class.getClassLoader());
|
||||
Class<?> clazz = loader.loadClass(versionInfo.mainClass);
|
||||
Method method = clazz.getMethod("main", String[].class);
|
||||
method.invoke(null, new Object[]{launchArgs});
|
||||
/*
|
||||
|
||||
} catch (Throwable th) {
|
||||
throw new RuntimeException(th);
|
||||
}
|
||||
|
||||
}).start();
|
||||
*/
|
||||
|
||||
// JREUtils.launchJavaVM(javaArgList);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user