Hello all, recently I decided I wanted to start up a small forge server with a large amount of mods, only to find out that the server will not launch due to some java errors,
A problem occurred running the Server launcher.java.lang.reflect.InvocationTarget
Exception
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM
ethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del
egatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunch
Wrapper.java:70)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunc
hWrapper.java:34)
Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$A
ppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loade
r.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base
of loader 'bootstrap')
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more
I tested running my server using forge-1.12.2-14.23.5.2768-universal.jar, and it worked, however I get those errors in the console when attempting to run my java command.