Skip to content

Commit

Permalink
Revert classloading "fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
14mRh4X0r committed Sep 27, 2013
1 parent 2c9d3aa commit 5a08bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static void dynamicLoadJar(String fileName) throws IOException {
Method method = sysclass.getDeclaredMethod("addURL", URL.class);

method.setAccessible(true);
method.invoke(sysloader, sysloader.getResource("minecraft_server.jar"));
method.invoke(sysloader, (new File(fileName)).toURI().toURL());
} catch (Exception ex) {
log.log(Level.SEVERE, "Could not add URL to class loader", ex);
System.exit(1);
Expand Down

0 comments on commit 5a08bff

Please sign in to comment.