NouveauCraftRank SitesSite web et boutique gratuitsCrée la tienne ›
AshlarLogiciel serveur gratuit basé sur Paper, avec protection DDoS et anti-backdoor Voir Ashlar ›CommunautéPose des questions, partage tes constructions et trouve des joueurs Rejoindre le forum ›

PSAMinecraft 26.1+ needs Java 25: which Java version for every Minecraft version

Redux··0 réponses·0 vues·Gérer un serveur

Redux
Staff
Inscrit
oct. 12, 2026
Messages
36
Score de réactions
0
#1
"Unsupported class file major version", "UnsupportedClassVersionError" or a server that closes right after you start it? Nine times out of ten it is the wrong Java version.

The table

Minecraft versionJava you need
1.16.5 and olderJava 8
1.17 – 1.17.1Java 16
1.18 – 1.20.4Java 17
1.20.5 – 1.21.11Java 21
26.1 and newer (26.1, 26.2, 26.3 …)Java 25
Note the jump in names: after 1.21.11 Mojang switched to year-based numbers, so 26.1 is the first version of 2026.

How to check and fix it

  1. Run java -version in the same terminal or panel that starts your server.
  2. If it is too old, install Java 25 (for example Eclipse Temurin or another OpenJDK build) and point your start script at it, e.g. /usr/lib/jvm/temurin-25/bin/java -Xms4G -Xmx4G -jar server.jar nogui.
  3. On a host panel, pick Java 25 in the startup settings ("Docker image" or "Java version").
  4. Running several versions? Keep each Java in its own folder and use the full path in each start script.

Plugins and mods

Updating Java is safe for old versions too (a 1.20.4 server runs fine on Java 21), but very old plugins can break on new Java. Update Paper, plugins and mods together, and make a backup first.

More: Paper vs Spigot vs Purpur vs Fabric · How to make a Minecraft server

Rejoignez la discussion

Connectez-vous ou créez un compte gratuit pour répondre.

Se connecter S'inscrire

Sujets similaires