STEP 1111 of 16

Match Java to Minecraft

Recognize the usual version errors without memorizing Java releases.

◷ About 7 minEasyReviewed Aug 18, 2026
On this pageThe runtime must match the gameRecognize a Java error

The runtime must match the game#

Java is the runtime that executes a Minecraft server. A Java release can be too old for a newer server, while some old mod loaders or mods do not support the newest Java. Crafty’s container may include several Java versions; choose the one required by the exact Minecraft release.

Minecraft generationTypical Java requirement
1.16.5 and olderJava 8 for many packs
1.17.xJava 16
1.18 through 1.20.4Java 17
1.20.5 through 1.21.xJava 21
26.1Java 25 according to current Fabric documentation

Recognize a Java error#

“Unsupported class file major version,” “compiled by a more recent version,” or a message requesting a specific Java release usually means the selected runtime is too old. Immediate crashes involving removed Java modules can mean it is too new for an old pack.

  1. 1
    Stop the server in Crafty.
  2. 2
    Open the server’s Config or launch settings.
  3. 3
    Find the Java executable/runtime override.
  4. 4
    Select the release required by that Minecraft and Fabric combination.
  5. 5
    Save, start, and read the first error—not just the final “process exited” line.
Was this page helpful?