Which Java version for your Minecraft server?
Type your Minecraft version, or the class file number printed in the error.
Use Java 21
This jar needs Java 21 or newer.
Full table
| Minecraft | Java |
|---|---|
| 26.1 and newer | 25 |
| 1.20.5 to 1.21.x | 21 |
| 1.18 to 1.20.4 | 17 |
| 1.17 | 16 or newer |
| 1.16.5 and older | 8 |
Fix UnsupportedClassVersionError
Select the matching Java image in your startup settings and restart. Details in the Java version guide.
Questions
Which Java does Minecraft 1.21 need?
Java 21.
Which Java does Minecraft 1.20.1 need?
Java 17.
What is class file version 65?
It is Java 21. The Java number is the class file version minus 44.