How do I fix the error message when starting the fabric server?

When starting the Start.bat file for the Minecraft Fabric server I get this error message:

Uncaught exception in thread "main"

java.lang.RuntimeException: An exception occurred when launching the server!

at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71)

at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)

Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0

at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102)

at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:193)

at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175)

at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)

at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)

at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)

at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)

… 1 more

Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85)

… 7 more

can someone help me fix it?

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
3 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
DieFreistunde
6 months ago

You will probably have an older Java version installed on your PC.

Java 8 is widely used; but unusable for the newer Minecraft Java Virtual Machines that manages your server in the background. At least Java 17 is required here.

You need to download the appropriate Java version that is suitable for your fabric version from Oracle.

From 1.20.5 the Java version 21 is required and also recommended, so should not hurt to install it:

https://www.oracle.com/de/java/technologies/downloads/#jdk21-windows

(Restart not forgotten)

You also need to customize your Start.bat Script so that the server is not started with the standard version 8, but with the new 21 version.

Bdkykrf
6 months ago

The error message indicates that the version of the Java Runtime Environment (JRE) you use does not match the version with which the Minecraft Fabric Server was compiled. Here are the steps you can take to fix the problem:

1)Refresh Java version:

  • You need a newer version of Java. The error message shows that you use a Java version that only supports up to version 52.0 while the required version is 65.0. This means you need at least Java 171.
  • Download and install the latest version of Java from the Oracle website.

2)Java version check and set:

  • Make sure your system uses the new Java version. You can check this by using the command prompt
  • java -version
  • ! It should be something like
  • java version "17.0.x"

    be displayed.

  • If the old version is still used, you need to adjust the environment variables to refer to the new Java version.

3)Start.bat customize file:

  • Make sure the file refers to the correct Java version. You can do this by adding the path to the new Java installation in the batch file. For example:
"C:\Pfad\zu\Java\jdk-17\bin\java.exe" -Xmx2G -jar fabric-server-launch.jar nogui

4)Restart system:

  • After installation and adaptation of the environment variables, it is often helpful to restart the system to ensure that all changes have been taken over.
jo135
6 months ago

has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Stand there. Your JDK is too old. Apparently you use the Uralt version 8, but you need 21.