SPIGOT-6902: (Unsupported) Load server as child of system classloader
This is an _unsupported_ feature and may be removed at a later date By: md_5 <git@md-5.net>
This commit is contained in:
@@ -50,8 +50,7 @@ public class Main {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
ClassLoader maybePlatformClassLoader = getClass().getClassLoader().getParent();
|
||||
URLClassLoader classLoader = new URLClassLoader(extractedUrls.toArray(new URL[0]), maybePlatformClassLoader);
|
||||
URLClassLoader classLoader = new URLClassLoader(extractedUrls.toArray(new URL[0]));
|
||||
|
||||
System.out.println("Starting server");
|
||||
Thread runThread = new Thread(() -> {
|
||||
|
||||
Reference in New Issue
Block a user