We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9d3aa commit 5a08bffCopy full SHA for 5a08bff
src/Main.java
@@ -190,7 +190,7 @@ public static void dynamicLoadJar(String fileName) throws IOException {
190
Method method = sysclass.getDeclaredMethod("addURL", URL.class);
191
192
method.setAccessible(true);
193
- method.invoke(sysloader, sysloader.getResource("minecraft_server.jar"));
+ method.invoke(sysloader, (new File(fileName)).toURI().toURL());
194
} catch (Exception ex) {
195
log.log(Level.SEVERE, "Could not add URL to class loader", ex);
196
System.exit(1);
0 commit comments