Java for your Minecraft server
Minecraft Java version checker
Choose your Minecraft version or paste the startup error. You get the matching Java version and Docker image.
Enter a version or startup error
A pasted startup error takes priority over the selected version.
Or paste a startup error
As soon as a class-file version is detected, the result uses the startup error instead of the selection above.
Why this happens
Which Java version does the error refer to?
Java bytecode contains a class-file version. The server needs a runtime that supports it, including when running in Docker.
Read the full Java version guide| Minecraft version | Recommended Java | Class file |
|---|---|---|
| 26.1+ | Java 25 | 69.0 |
| 1.20.5 – 1.21.11 | Java 21 | 65.0 |
| 1.18 – 1.20.4 | Java 17 | 61.0 |
| 1.17.x | Java 17 | 60.0 |
| 1.12 – 1.16.5 | Java 8 | 52.0 |
FAQ