Hi,
I am trying to create a modded Minecraft Forge server so I could play with my friends. I watched every video on how to make a modded Minecraft server using Forge on a Mac and they do not seem to have any problems at all, but unfortunately the terminal can not run the forge jar and is giving me error messages which will be provided below. The reason why I prefer using the terminal instead of the provided Minecraft server jar provided by the official Minecraft website is because the SpongeForge mod disables the GUI as far as I know. But anyways, here are the information:
I am currently using a 2018 Macbook Pro 15.
Specs:
CPU
2.2 GHz Intel Core i7
RAM
16GB 2400mHz DDR4
GPU
Radeon Pro 555X 4GB
Intel UHD Graphics 630 1536 MB
I also installed the recommended Java version - Java 8 Update 221.
Here's what's inside my start.command
#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms1G -Xmx1G -jar forge-1.12.2-14.23.5.2838-universal.jar nogui
and Here's the log on my terminal when i try to run the start.command:
Last login: Thu Jul 18 00:22:03 on ttys000
Keiths-MacBook-Pro:~ keithphilippe$ /Users/keithphilippe/Desktop/Modded/Server/start.command ; exit;
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:567)
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
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
I hope someone can help me fix this problem. Thanks in advance.