You updated your Minecraft: Java Edition server to version 26.1 or later (26.3 was released on September 15, 2026), and it stops right at launch with an UnsupportedClassVersionError? Since version 26.1, Mojang states that the game requires Java 25. The official launcher provides its own Java, but a server you start yourself uses the Java installed on the PC. If that is Java 21 or older, the server cannot start. This guide explains how to check and fix this without losing your world.
What to know before you start
- The official change: in the Minecraft Java Edition 26.1 notes (March 24, 2026), Mojang writes: "The game now requires Java 25". The Java distribution included with the game is now the Microsoft Build of OpenJDK 25.
- How to read the error message: according to Oracle's Java specification, class file format version 65 corresponds to Java 21, and Java 25 supports up to version 69. The message "69.0 … up to 65.0" therefore means: the server needs Java 25, but Java 21 is launching it. The exact numbers may vary depending on the Java version installed.
- The official launcher is not affected: it installs the right Java itself for playing. This guide covers dedicated servers started with a .jar file, and third-party launchers that use a Java you chose.
- Back up the world: the same 26.1 notes state that the way worlds and their data are stored has changed. Keep a copy of the world from before the update: it is your only possible rollback.
- Modded or plugin servers: third-party server software (with mods or plugins) has its own requirements. Check its official documentation in addition to this guide.
Step 1: check which Java version is used
When to use it: always, first.
Expected result: you know which Java version starts your server.
When to stop: if the command already shows version 25 or later and the server still fails, your startup script may call another Java: go straight to step 4. If Windows says "java" is not recognised, no Java is reachable: go to step 3.
Step 2: back up the world first
When to use it: before starting the server for the first time on version 26.x.
Expected result: you have a full copy of the world as it was before the update.
Rollback: if the new version does not suit you, put back the old server .jar file and the world copy.
When to stop: if the world is very large, wait for the copy to finish completely before continuing.
Step 3: install Java 25
When to use it: step 1 shows a version lower than 25, or no Java at all.
Expected result: java -version shows version 25.
Rollback: uninstall "Microsoft Build of OpenJDK" from Settings > Apps > Installed apps. Your old Java is not removed by this installation: keep it if other software needs it.
When to stop: on a PC with an ARM processor, choose the aarch64 package instead of x64.
Step 4: make the server start with Java 25
When to use it: Java 25 is installed, but the server still shows the error, or java -version still shows an old version.
Expected result: the server console loads the world without an UnsupportedClassVersionError.
Rollback: restore the script copy made in point 1.
When to stop: in the example, replace "jdk-25.X.X-hotspot" with the real folder name (it may be formed differently on your PC). Copy the real path shown in File Explorer. If another error appears (mods, plugins, port already in use), note it down: it is no longer the Java version problem.
Special cases
| Situation | What to know |
|---|---|
| Third-party launcher | It often uses the Java chosen in its own settings. Select Java 25 there for 26.x versions. |
| Server host | Choose Java 25 in the host's control panel if offered, or contact its support. |
| Server with mods or plugins | The mod loader or server software must also be compatible with version 26.x. Check its official documentation. |
| Several Java versions installed | Windows uses the first one found in PATH (see where java). The full path in the script (step 4) removes any ambiguity. |
| The game crashes at launch from the official launcher | That is a different problem: see the guide Minecraft Java crashes at launch ("Exit Code: 1", "The game crashed", black screen): solutions (French guide). Since 26.1, the game also allocates 4 GB of memory by default: Mojang points to a help article on memory allocation for PCs with less than 4 GB. |
| The server starts but players cannot connect | See the guide Failed to connect to a Minecraft Java server: causes and solutions (French guide). |
Final check
- ☐ A copy of the world from before the update is stored separately.
- ☐ java -version shows version 25, or the script calls Java 25's java.exe directly.
- ☐ The server starts and loads the world without UnsupportedClassVersionError.
- ☐ Players use the same Minecraft version as the server.
Sources
- Minecraft: Minecraft Java Edition 26.1 (official notes, March 24, 2026: Java 25 required, Microsoft Build of OpenJDK 25 included, world storage changed, 4 GB of memory by default)
- Minecraft: Minecraft Java Edition 26.3 (released September 15, 2026)
- Microsoft: Download the Microsoft Build of OpenJDK (OpenJDK 25 packages for Windows x64 and aarch64)
- Microsoft: Install the Microsoft Build of OpenJDK (PATH updated by default, installer options)
- Oracle: Java Virtual Machine Specification, Java SE 21, chapter 4 (class file version table: Java SE 21 = 65)
- Oracle: Java Virtual Machine Specification, Java SE 25, chapter 4 (Java SE 25: versions 45 to 69)
Still having the problem?
Reply in this topic with the server's Minecraft version, the output of java -version and where java, the launch line of your script (without passwords or public IP address), the server software used (official, with mods or plugins) and the full error message. Never post your email address, Microsoft credentials or password.