Java version for your core
Which Java is needed for 1.8, 1.16, 1.17, 1.20, and 1.21, why the panel chooses it automatically, and what UnsupportedClassVersionError means.
Updated August 13, 2026
Minecraft is a Java program, and the Java version must match the game version.
| Minecraft | Java |
|---|---|
| 1.8 – 1.16.5 | 8 (sometimes 11) |
| 1.17 – 1.20.4 | 17 |
| 1.20.5 and newer | 21 |
In Millida
The panel selects the version based on the server core and game version. You don’t need to change it manually: this is one of the most common causes of “the server won’t start” on hosting providers where the choice is left to the user.
When it still matters
- Custom core — Custom .jar.
- An old 1.7.10 and 1.12.2 modpack with mods that break on Java above 8.
- A mod is built for a newer Java than the core: then
UnsupportedClassVersionErrorwill appear in the log — explanation.
How to tell which Java is running
The first lines of the log at startup contain the Java version. Also, the /version command on Paper shows the environment.
Java 8 and old modpacks
1.12.2 modpacks run on Java 8 and usually won’t start at all on Java 17: older Forge versions use internal APIs removed in newer Java versions. This can’t be fixed with flags — only with the appropriate version.
