I'm trying to get a server running for my modpack but I cant seem to get it to start. AFAIK I have everything set up correctly. I have java 8 installed, not 9/10, and I'm running on a mac.
here's what my start.command looks like:
#!/bin/bash
cd "$( dirname "$0" )"
java -Xms2G -Xmx4G -jar forge-1.12.2-14.23.5.2768-universal.jar -o true
and here's the message I see in the terminal window, it crashes right away as soon as it starts up:
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
Caused by: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more
logout
I've tried it with no mods installed, I've made sure I had java 8 installed, I reinstalled forge/libraries/minecraft_server. None of that has worked.