NoweCraftRank SitesDarmowa strona i sklepZrób swoją ›
AshlarDarmowe oprogramowanie serwera oparte na Paper, z ochroną przed DDoS i backdoorami Zobacz Ashlar ›SpołecznośćZadawaj pytania, dziel się budowlami i znajdź ludzi do gry Dołącz do forum ›

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

Redux··0 odpowiedzi·0 wyświetleń·Prowadzenie serwera

Redux
Administracja
Dołączył
paź 12, 2026
Wiadomości
36
Wynik reakcji
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

Dołącz do rozmowy

Zaloguj się lub załóż darmowe konto, aby odpowiedzieć.

Zaloguj się Zarejestruj się

Podobne wątki