I am using a headless Ubuntu server to host my minecraft server. I had previously installed and working the standard server for version 1.12.2 and am now trying to get a forge server to work. I created new folder and installed a new forge server (1.12.2) using "java -jar forge-1.12.2-14.23.0.2552-installer.jar -installServer nogui", which seemed to work. After this however, I am not able to get the forge server to launch.
I have not added any mods yet and am just trying to get the server to start at this point...
There are two jar files in the directory, forge-1.12.2-14.23.0.2552-universal.jar and minecraft_server.1.12.2.jar. I am able to start minecraft_server.1.12.2.jar using "java -Xmx1024M -Xms1024M -jar minecraft_server.1.12.2.jar nogui" but cannot start forge-1.12.2-14.23.0.2552-universal.jar using a similar command. I get the following:
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:62)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:31)
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.(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more
It is my understanding that I need to run the forge jar file for any mods to work. Any help or advice is greatly appreciated.
Hello All,
I am using a headless Ubuntu server to host my minecraft server. I had previously installed and working the standard server for version 1.12.2 and am now trying to get a forge server to work. I created new folder and installed a new forge server (1.12.2) using "java -jar forge-1.12.2-14.23.0.2552-installer.jar -installServer nogui", which seemed to work. After this however, I am not able to get the forge server to launch.
I have not added any mods yet and am just trying to get the server to start at this point...
There are two jar files in the directory, forge-1.12.2-14.23.0.2552-universal.jar and minecraft_server.1.12.2.jar. I am able to start minecraft_server.1.12.2.jar using "java -Xmx1024M -Xms1024M -jar minecraft_server.1.12.2.jar nogui" but cannot start forge-1.12.2-14.23.0.2552-universal.jar using a similar command. I get the following:
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:62)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:31)
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.(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more
It is my understanding that I need to run the forge jar file for any mods to work. Any help or advice is greatly appreciated.
What is your Java version?
EnviousHost MINECRAFT SERVERS - CHEAP - [FREE MUMBLE] [FREE WEBHOSTING] [ONE CLICK PLUGINS]
Thanks for the reply and apologies for not getting back to you sooner. I get this from "java --version"
java 9
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
Try using Java 8 64 bits.
EnviousHost MINECRAFT SERVERS - CHEAP - [FREE MUMBLE] [FREE WEBHOSTING] [ONE CLICK PLUGINS]