Fix1 min read

Wrong Java version (UnsupportedClassVersionError)

Each Minecraft version needs a minimum Java. Let your launcher pick it.

Screenshot by DigitalCraver
On this page

You might see

  • UnsupportedClassVersionError
  • Unsupported class version
  • has been compiled by a more recent version of the Java Runtime
  • class file version 65.0
  • class file version 61.0
  • class file version 69.0

Our servers

  • All the Mods 10Minecraft 1.21.1 · NeoForgeJava 21

How to fix it

  1. In your launcher, turn off any custom Java path so it uses its own Java.
  2. Picking one yourself? Use the table. Newer than needed is fine; older won't start.
  3. In the error, class file version 61 = Java 17, 65 = Java 21, 69 = Java 25.

Which Java each Minecraft version needs

Minecraft versionJava needed
1.20 – 1.20.4Java 17
1.20.5 – 1.21.11Java 21
26.1 and newerJava 25