This Game Version Needs A Newer Java
The game or a mod needs a newer Java than the one used, for example Java 21 for Minecraft 1.20.5+ or Java 25 for 26.x.
What the log says"has been compiled by a more recent version of the Java Runtime (class file version …)"
What it means
The game or a mod needs a newer Java than the one used, for example Java 21 for Minecraft 1.20.5+ or Java 25 for 26.x.
How to fix
- Press Fix it for me — it selects the right Java automatically.
- Keep Java on "Managed automatically".
The launcher recognises this automatically (rule java.class_version): the Last crash box on the instance page explains it, and Fix it for me makes the fix. See The game crashed — what to do.