1
Server doesn't start
I made a 1.12.2 forge server and I'm trying to run it with more ram. I've search up tutorials online and made a start.command containing:
#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms2G -Xmx2G -jar forge.jar
When I tried to run the server using the start.command file, it doesn't start and shows
Last login: Fri Aug 7 21:07:41 on ttys000
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: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.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
[Process completed]
How do I fix this?
I'm on macOS Catalina 10.15.6
#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms2G -Xmx2G -jar forge.jar
When I tried to run the server using the start.command file, it doesn't start and shows
Last login: Fri Aug 7 21:07:41 on ttys000
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: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.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
[Process completed]
How do I fix this?
I'm on macOS Catalina 10.15.6
3
Not exactly forge, but this thread could come in useful.
github.com/MinecraftPortCentral/Cauldron-Issues/issues/26
github.com/MinecraftPortCentral/Cauldron-Issues/issues/26
What version of java are you using? (The output of java -version)
You might want to remove your account username from the error log above. (first three lines)
