1

Server doesn't start

PolarPowah 8/7/20 11:53 am history
4.1k
8/11/2020 9:37 pm
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
Posted by
PolarPowah
Level 1 : New Miner
0

  Have something to say?

JoinSign in

3

nutmeg_
08/11/2020 9:37 pm
Level 1 : New Explorer
Not exactly forge, but this thread could come in useful.

github.com/MinecraftPortCentral/Cauldron-Issues/issues/26
1
pixelsquared
08/07/2020 2:45 pm
Level 2 : Apprentice System
What version of java are you using? (The output of java -version)
1
Bertiecrafter
08/07/2020 12:24 pm
Level 72 : Legendary System
You might want to remove your account username from the error log above. (first three lines)
1

Welcome