UnsupportedClassVersionError: class file version 69.0

Class file version 69.0 means your Minecraft server needs Java 25 and is running an older one. How to confirm, fix it on a host, Docker or VPS, and check.

Omne Team7 min read

Quick answer UnsupportedClassVersionError ... class file version 69.0 ... only recognizes class file versions up to 65.0 means the server jar was built for Java 25 and your server is starting it with an older Java (Java 21 in the numbers above). Class file 69.0 is Java 25 and 65.0 is Java 21 [1][2]. Minecraft 26.3 needs Java 25 [5][6]. Install or select Java 25, restart, and check java -version shows 25. If you already did that and it still fails, the server process is starting a different Java than the one you changed, so check what it actually runs.

The error, word for word

This is how one user posted it in a CubeCoders forum thread about a 26.1.2 server [11]:

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

I did not reproduce this myself. I quote it because it is a real report with these exact numbers. The numbers change with the Java you are running. A server on Java 17 would end with up to 61.0 [3].

Oracle’s description of the error is short: the JVM tried to read a class file and decided its major and minor version numbers are not supported [4]. A JVM accepts class files only up to the major version its own Java SE release defines: the Java SE 25 specification gives the range as 45 through 69 [17]. Your server jar is compiled for Java 25 (version 69). The Java running it is Java 21 (version 65). The failing class in the quote above is the jar’s launcher class, so the server stops before Minecraft prints anything useful.

I also checked the 26.3 server download from Mojang’s version JSON: the net/minecraft/bundler/Main classes in it carry major version 69 (bytes 6 and 7 of the class file read 0x0045).

So the message is blunt but honest. Nothing is corrupt. Nothing is wrong with your world. The wrong Java picked up the jar.

Which Java each Minecraft version needs

The class file numbers I could confirm from a source are 61 for Java 17, 65 for Java 21 and 69 for Java 25 [1][2][3]. The Java column below is the major version Mojang lists for each release in its own version data, read on 2026-11-17 [5]:

Minecraft version Java Mojang lists Class file version
1.16.5 8 not checked
1.17.1 16 not checked
1.18.2 to 1.20.4 17 61.0 [3]
1.20.5 to 1.21.11 21 65.0 [2]
26.1, 26.3 25 69.0 [1]

Two caveats. I spot-checked 1.18.2, 1.19.4, 1.20.1, 1.20.4, 1.20.5 (via 1.20.6), 1.21 and 1.21.11, not every patch release. And Mojang’s data describes the Java its own launcher bundles for the game. For server software the better source is the software’s own number. Paper’s data says minimum Java 25 for 26.3 and minimum Java 21 for 1.21.11 [6][7]. They agree here. The Minecraft Wiki’s 26.1 page says the game now requires Java 25 [10].

Your server software also matters. A Fabric or NeoForge server on 26.x needs Java 25 for the same reason. A plugin or mod can raise the bar further, which is cause 3 below.

Fix it: install Java 25 and make sure the server uses it

On a managed panel

Look for a Java version or Docker image setting on the server’s startup page. On an Omne server it is the Docker Image dropdown under Startup, an advanced setting, and the fix is picking the Java 25 entry and pressing Restart. Other panels word it differently, and I did not check them.

If your panel is Pterodactyl-based, the image tags come from the yolks project, which lists java_17, java_21 and java_25 among others [15]. If you run your own Pterodactyl, the image name looks like ghcr.io/pterodactyl/yolks:java_25.

On your own Linux box or VPS

Check what you have first:

java -version

Paper’s guidance for Java 25 is that the output should start with openjdk 25 and mention 64-Bit on the last line [8]. Paper also warns against headless Java builds [8]. If it prints 21 or lower, install Java 25. Paper documents an Amazon Corretto route for Debian-based systems [8]:

sudo apt-get update
sudo apt-get install ca-certificates apt-transport-https gnupg wget
wget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.list
sudo apt-get update
sudo apt-get install -y java-25-amazon-corretto-jdk libxi6 libxtst6 libxrender1

Then close your terminal, open a new one and run java -version again. Paper’s troubleshooting page says the same: close and reopen the terminal after installing, and make sure Java is on your PATH [9].

If java -version still says 21 after installing, two Javas are installed and the old one wins. On Debian-style systems update-alternatives --display java shows which one the java command points to, and sudo update-alternatives --config java lets you pick one interactively [16].

In Docker

With the itzg image, the latest tag follows the Java version Mojang requires for the newest release, and there is a java25 tag for pinning it [14]. The same docs’ example is a class file version 65.0 startup error (a Java 21 jar on an older Java), and their fix is to re-pull latest or pin the java21 tag [14]. The 69.0 version of that fix is the java25 tag, by the same logic, though the page does not show a 69.0 example. A running container keeps the image it was created from, so pull and recreate it rather than only restarting. The full setup is in running Minecraft in Docker with itzg.

How to confirm it is fixed

Two checks, in this order.

  1. java -version (or the Java line your panel shows) reports Java 25. Run it in the same environment that starts the server, meaning the same user, same shell or the same container. A fix applied to your login shell does nothing for a systemd service that hardcodes another Java path.
  2. Start the server. The UnsupportedClassVersionError line is gone and the console moves on to normal startup output. On a fresh folder the next thing you meet is the EULA message, which is a different problem with its own fix.

If you updated from an older version, read how to update a Minecraft server without losing your world next. Java 25 is only one item on that list, and the backup comes first.

Why it can still fail with Java 25 “selected”

These are the other ways to hit the same error.

1. The setting says 25 but the process runs 21. In a CubeCoders forum thread about a 26.1.2 server, a user found the highest Java selectable in the panel was 21, and the reply was to run getamp installJava as root and reboot [11]. That command is specific to that panel. The general lesson applies anywhere: the dropdown is a request, the console output is the truth.

2. A plugin or mod was built for a newer Java than the server runs. The class named in the first line tells you who is complaining. net/minecraft/bundler/Main is the Minecraft server jar itself, as in the quote above [11]. Paper’s own troubleshooting page shows the same error naming org/bukkit/craftbukkit/Main, a Paper (CraftBukkit) class [9]. If the name is a plugin or mod package instead, that file needs a newer Java or an older build. Remove it to confirm, then update it. See installing plugins on Paper and installing mods on Fabric.

3. You are running a Java that is too new for something bundled inside a plugin. The message is similar but the reverse:

java.lang.IllegalArgumentException: Unsupported class file major version 69

That is a different error. It is not UnsupportedClassVersionError and it does not mean your Java is too old. In one ProtocolLib report the server log shows it running Java 25, and the stack trace shows ASM 9.7.1 throwing the error. The issue was closed by a ProtocolLib commit that bumps ByteBuddy from 1.17.5 to 1.17.8 [13].

A CubeCoders thread shows the same pattern in a modded launch: Error loading class: java/lang/Thread (java.lang.IllegalArgumentException: Unsupported class file major version 69) [12]. java/lang/Thread is a class of the JDK itself, so that JVM was already Java 25 and the bytecode library reading it was too old. The thread’s one reply says to select Java 25, and it does not say whether that worked. The two cases look identical in the console and have opposite fixes, so read the exception name before you touch Java. If you see Unsupported class file major version on a Paper server that starts, update your plugins first.

What I could not check

I did not run a 26.3 server on Java 21 for this post, so the only exact error text above is the forum quote. I did not check any panel’s Java menu live (the Omne panel description comes from Omne’s own docs), and I did not check Java 8, 11 or 16 class file numbers. Mojang’s data tells you what Mojang bundles. For anything modded, trust the loader’s own requirement over this table.

Questions people ask

What Java version is class file version 69.0?

Java 25. Class file 65.0 is Java 21 and 61.0 is Java 17, per the Java Almanac summary pages [1][2][3]. The error is thrown when the JVM reads a class file whose version it does not support [4].

Does Minecraft 26.3 run on Java 21?

No. Mojang's version data lists a Java 25 runtime for 26.3, and Paper's data for 26.3 sets a minimum of Java 25 [5][6]. 1.21.11 is listed with Java 21 [5][7].

I set Java 25 in my panel and it still fails. Why?

The setting may not have been applied to the running process, or Java 25 is not installed on that machine. In one forum thread the highest Java the panel offered was 21, and the reply was to run the panel's Java install command as root and reboot [11]. Check the version the server actually runs, not just the dropdown.

Is 'Unsupported class file major version 69' the same error?

No. It is the opposite situation. Java is new enough, but an older bytecode library, such as an old ASM, cannot read Java 25 class files. In one ProtocolLib report the fix was a ByteBuddy version bump in the plugin [13].

Sources

  1. Java 25 summary, class file version 69.0 (Java Almanac)
  2. Java 21 summary, class file version 65.0 (Java Almanac)
  3. Java 17 summary, class file version 61.0 (Java Almanac)
  4. UnsupportedClassVersionError (Java SE 21 API, Oracle)
  5. Mojang version manifest (per-version javaVersion data)
  6. Paper version data for 26.3 (Fill API)
  7. Paper version data for 1.21.11 (Fill API)
  8. Installing Java (PaperMC Docs)
  9. Basic troubleshooting, Outdated version of Java (PaperMC Docs)
  10. Java Edition 26.1 (Minecraft Wiki)
  11. Latest Minecraft Java version (26.1.2) wont start (CubeCoders forum)
  12. Unsupported class file major version 69 (CubeCoders forum)
  13. ProtocolLib issue 3566, Unsupported class file major version 69 (GitHub)
  14. Java versions (itzg/docker-minecraft-server docs)
  15. Pterodactyl yolks images (GitHub)
  16. update-alternatives(1) (Debian manual)
  17. JVMS Java SE 25, chapter 4 The class File Format (Oracle)