Startup Issue with Minecraft - Java error when starting the server

System Information

Field Value
Operating System Linux - Ubuntu 20.04.6 on x86_64
Product AMP ‘Phobos’ v2.6.0.2 (Mainline)
Virtualization QEMU_KVM
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

Issue

After installing the GTNH server file and setting up the server for an expected correct startup, a JAVA error is thrown. Lack of knowledges makes me unable to find & fix the issue.

Reproduction Steps

  • Install GTNH 2.7.0 Beta3 Java 17-21 server files.
  • Configure server for launch
  • Attempt to start the server

Consoles log:

A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException

at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)

at java.base/java.lang.reflect.Method.invoke(Method.java:580)

at me.eigenraven.lwjgl3ify.rfb.entry.ServerMain.run(ServerMain.java:37)

at me.eigenraven.lwjgl3ify.rfb.entry.ServerMain.main(ServerMain.java:12)

Caused by: java.lang.IllegalStateException: System classloader not overwritten, add -Djava.system.class.loader=com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader to your JVM flags

at com.gtnewhorizons.retrofuturabootstrap.Main.main(Main.java:140)

at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)

... 3 more

EDIT 1:
After adding the Java argument from the server files to the AMP configuration, I am getting a new error.
Here are the JAVA argument:

java -Xms6G -Xmx6G -Dfml.readTimeout=180 @java9args.txt -jar lwjgl3ify-forgePatches.jar nogui

The new error:

[0.063s][warning][cds] Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader"). To use archived non-system classes, this property must not be set
Error occurred during initialization of VM
java.lang.Error: com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader
	at java.lang.ClassLoader.initSystemClassLoader(java.base@21.0.4/ClassLoader.java:2024)
	at java.lang.System.initPhase3(java.base@21.0.4/System.java:2333)
Caused by: java.lang.ClassNotFoundException: com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader
	at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@21.0.4/BuiltinClassLoader.java:641)
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@21.0.4/ClassLoaders.java:188)
	at java.lang.ClassLoader.loadClass(java.base@21.0.4/ClassLoader.java:526)
	at java.lang.Class.forName0(java.base@21.0.4/Native Method)
	at java.lang.Class.forName(java.base@21.0.4/Class.java:534)
	at java.lang.Class.forName(java.base@21.0.4/Class.java:513)
	at java.lang.ClassLoader.initSystemClassLoader(java.base@21.0.4/ClassLoader.java:2010)
	at java.lang.System.initPhase3(java.base@21.0.4/System.java:2333)

Yeah, you need to stop the instance, then go into it’s MinecraftModule.kvp (using the main panel’s file manager) and set the Java.CustomPath= and Java.JavaVersion= settings to ./Minecraft/{the/path/to/gtnh/folder}/bin/java.
(assuming it can’t run with bog standard Java 17)
Also make sure you’re reading their server docs, as lwjgl3ify is for client rendering, which doesn’t happen server-side, so I doubt that’s the right Jar (I could be wrong however, their docs would know for sure).
Additionally, AMP already handles Xmx, Xms, and jar.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.