[p]I am on a mac, whenever I try to launch a forge Minecraft server, this error pops up. I have already installed the server where I want it and can open the vanilla jar, just not the modded one. I tried launching it from the terminal and this is the error message I received: [/p]
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException[/p]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[/p]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[/p]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[/p]
at java.base/java.lang.reflect.Method.invoke(Method.java:564)[/p]
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)[/p]
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)[/p]
Caused by: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader[/p]
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)[/p]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)[/p]
... 6 more[/p]
I've been trying to fix this, but I have no clue what is wrong with it.[/p]
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException[/p]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[/p]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[/p]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[/p]
at java.base/java.lang.reflect.Method.invoke(Method.java:564)[/p]
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)[/p]
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)[/p]
Caused by: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader[/p]
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)[/p]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)[/p]
... 6 more[/p]
I've been trying to fix this, but I have no clue what is wrong with it.[/p]