From 84431e48913ae8684f5283597df05512022f85fc Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 15 Jun 2024 17:33:02 -0500 Subject: [PATCH] Add a section about class file version 65.0 message --- docs/versions/java.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/versions/java.md b/docs/versions/java.md index 5852b8fa943..c1a30876481 100644 --- a/docs/versions/java.md +++ b/docs/versions/java.md @@ -80,6 +80,18 @@ The `stable` image tag combines the benefits of `latest` and [release versions]( [This section in the Minecraft wiki](https://minecraft.wiki/w/Tutorials/Update_Java#Why_update?) lists out versions of **vanilla** Minecraft versions and the corresponding Java version that is required. +### Class file version 65.0 + +If encountering a startup failure similar to the following examples, then ensure that the latest image has been re-pulled to use a Java 21. Alternatively, set the image tag specifically to `itzg/minecraft-server:java21`. + +> Exception in thread "ServerMain" java.lang.UnsupportedClassVersionError: org/bukkit/craftbukkit/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 61.0 + +or + +> Error: LinkageError occurred while loading main class net.minecraft.bundler.Main +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 61.0 + + ### Forge versions Forge and its mods sometimes utilize non-public APIs of the JVM and as such are suspceptible to becoming broken with newer Java versions.