Why'd It Crash?

"UnsupportedClassVersionError": you're on the wrong Java

Short answer: Something in your setup was built for a newer Java than the one your launcher is using. Install the Java version your Minecraft version needs and point the launcher at it.

What it means

The error usually reads has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0.

Those numbers map to Java versions: 52 is Java 8, 61 is Java 17, 65 is Java 21. So the example above means "this needs Java 21, but you're running Java 17".

How to fix it

  1. Check which Java your Minecraft version wants. Roughly: 1.16 and older use Java 8, 1.17 to 1.20.4 use Java 17, and 1.20.5 and newer use Java 21.
  2. Install that Java. Adoptium Temurin is free and works well.
  3. Point your launcher at it. In Prism it's the instance's Java settings. In CurseForge it's under Settings, then Minecraft. The official launcher normally picks the right Java itself, unless you set a custom one.
  4. For a server, start it with the right Java, for example by putting the full path to that Java's java in your start script.

Not sure this is your crash?

Paste your crash report or latest.log into the checker. It reads the log in your browser and tells you what broke, and how sure it is.

Check my crash log

Related crashes