In previous versions of the Launcher, it let you use a newer version of Java then the minimum requirement. Now, you get Java Runtime version error when using a Java version newer than the minimum requirement.
Your Java Runtime is incompatible. Please edit your installation to use the bundled Java Runtime.
Name Java version mismatch
URL http://aka.ms/jnierror.
It happens with Java 18 EA on 1.18. It also happens with Java 18 EA and Java 17 on 1.17. It also happens with Java 17, Java 16 and Java 11 on versions older than 1.17. It should only block older Java versions, not newer ones. It does not happen when using Java 8 to launch a version that is compatible with Java 7.
Workaround: Delete the JavaCheck.jar file from the game folder. On macOS, it can be found in ~/Library/Application Support/minecraft/launcher/launcher.bundle/Contents/Resources. On Linux, it is in ~/.minecraft/launcher.
Linked issues
is duplicated by 7
relates to 2
Attachments
Comments 33


I'm having A similar issue. I set the Java exetubable path to /usr/lib/jvm/java-16-openjdk-amd64/bin/java (that's Linux, sorry if you're unfamiliar with that) for 1.16.5 and it worked flawlessly before the launcher update.

This also impacts using AdoptOpenJDK 16 to launch a modded 1.16.5 game. Worked just fine yesterday. Deleting "C:\Program Files (x86)\Minecraft Launcher\game\JavaCheck.jar" did allow me to launch the game.

Confirmed on a Windows Server 2019 machine, The minecraft launcher has a broken java checker where it cannot detect newer java versions properly without thinking it's outdated in one way or another. + Any other version that however meets the JDK 16 context also fails to launch and thous requires the java-checker to be removed in order to run.
EDIT: Older versions of Minecraft such as 1.16.5 can also no longer run newer java versions as javacheck.jar also now blocks them entirely aswell.

Can confirm this bug also

This bug has been around for 2 years, and yet nothing has been done to fix it? If I'm not missing anything, has anything ever been done to look at this simple bug, like I feel like modifying the JavaCheck to include newer versions of either the JRE or JDK, it would be fixed by now. Especially considering, the version that is supported by the JavaCheck is before a major security update, leaving this game wide open to a major security flaw...

It is still happening with me.
[media]
(Version of MC 1.20.1)

For anyone running into this: we need some system info from you; please contact support as a next step: https://aka.ms/MCLauncherSupport
Confirmed for 2.4.104.
[media][media]
System Info
OS: Windows 11 Pro 64-bit version 22H2 build 22621.1848
Java Version: 20.0.1 64-Bit
RAM: 64GB
CPU: Intel® Core™ i9-9900K
GPU: NVIDIA GeForce RTX 3080
GL Version: 3.27.0.112 NVIDIA 536.23
New option "Skip Java runtime version check" has been added to new installation window.
Closing as fixed.
Can reproduce with non-Oracle versions of Java - running Minecraft with AdoptOpenJDK or Liberica JDK/JRE results in the same error. Minecraft worked perfectly fine with these versions until the launcher update.