Try run on diff thread

This commit is contained in:
Duy Tran Khanh committed 2021-01-02 18:45:45 +07:00
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);
}