Jump to content

Recommended Posts

Posted

OS: Kubuntu 18.04.1 LTS

Forge: forge-1.12.2-14.23.5.2775-universal (fresh install)

Command: java -Xmx2G -jar forge-1.12.2-14.23.5.2775-universal.jar nogui

Output: 

user@hostname:~/test$ java -Xmx2G -jar forge-1.12.2-14.23.5.2775-universal.jar nogui
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
user@hostname:~/test$

I started my server this morning after an OS upgrade last night only to be greeted with this, it worked fine the day before.

The vanilla server still works fine, it's the forge one that's having issues.

Posted (edited)
5 minutes ago, diesieben07 said:

The crash indicates you are in fact using Java 9 or above.

That's interesting I got from java.com and it said "Java 8 Update 191" how to fix?

 

(Edit: I just checked it's running Openjdk 10.0.2 O_o)

Edited by Kitsune_Ultima
Posted
11 minutes ago, diesieben07 said:

I am not sure why you would install things outside of the package manager on linux.

To install Java 8 on Ubuntu you use apt-get install openjdk-8-jre (or openjdk-8-jdk if you want the full JDK).

Make sure your JAVA_HOME environment variable is set properly.

Fixed! Thanks!

(Still, don't know why it auto-installed OpenJDK 10.0.2)

  • 3 years later...
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.