The message
java.lang.UnsupportedClassVersionError: squeek/appleskin/AppleSkin has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Mod 'Lithium' (lithium) 0.14.0 requires version 21 or later of 'Java' (java), but only the wrong version is present: 17!The full message is in the game folder: logs/latest.log for every start, and crash-reports/ for crashes that got far enough to write a report. In Prism, CurseForge and the Modrinth App, the instance's folder button opens the game folder.
What it means
Each Minecraft version runs on a set Java version, and mods are built for it. When the launcher starts the game with an older Java, the first file it cannot read stops the game.
The numbers in the message are class file versions. Subtract 44 to get the Java version: 52 is Java 8, 60 is Java 16, 61 is Java 17, 65 is Java 21, 69 is Java 25. In the example, the mod needs Java 16 but the game runs on Java 8.
Mojang ships these Java versions: Java 8 up to 1.16.5, Java 16 for 1.17, Java 17 from 1.18 to 1.20.4, Java 21 from 1.20.5 to 1.21.11, and Java 25 for 26.1 and newer.
How to fix it
- 1Look up the Java your Minecraft version needs in the list above.
- 2Official launcher: Installations → Edit → More options → Java executable. Leave it empty to use the Java Mojang ships, which is always the right one.
- 3Prism Launcher: Edit instance → Settings → Java, and pick a Java with the right major version. Prism can download the right one for you.
- 4CurseForge app: the Java setting is under Settings → Minecraft. The Java it ships is the right one unless you changed it.
- 5If a mod alone asks for a newer Java than the game needs, it was made for a newer Minecraft version. Use the mod's version for yours.
With Packquill
Packquill reads both kinds of message and says which Java the game needs and which one it ran on. It does not change your launcher's Java; it tells you what to pick.
Packquill is free for Windows and Linux. It backs up every change, so anything it does can be undone.
Questions
Can I just install the newest Java?
For 1.17 and newer, a newer Java usually works. For 1.16.5 and older, Java 8 is the safe choice: many older mods and loaders break on newer Java.
What does “class file version 65.0” mean?
The file was built for Java 21 (65 − 44 = 21). The game is running an older Java than that.
Do I need to uninstall my other Java versions?
No. Several Java versions can live side by side; the launcher setting decides which one starts the game.