We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4852cfe commit 13bb540Copy full SHA for 13bb540
src/main/java/org/CreadoresProgram/ViaProxyNoCommandRun/Main.java
@@ -8,7 +8,7 @@ public static void main(String[] args){
8
try{
9
File file = new File(System.getProperty("user.dir") + "/ViaProxy.jar");
10
URL url = file.toURI().toURL();
11
- URLClassLoader child = new URLClassLoader(new URL[] { url }, JarLoader.class.getClassLoader());
+ URLClassLoader child = new URLClassLoader(new URL[] { url }, Main.class.getClassLoader());
12
Class<?> classToLoad = Class.forName("net.raphimc.viaproxy.ViaProxy", true, child);
13
Method method = classToLoad.getDeclaredMethod("main", String[].class);
14
method.invoke(null, (Object) getArgsVP());
0 commit comments