Java version check fails when attempting to start Minecraft 1.16.5 with Adoptium OpenJDK 1.8.0_352
Repro steps:
- Install latest Adoptium OpenJDK (1.8.0_352).
- Create a new 1.16.5 installation.
- Edit installation and set Java executable path to javaw in the Adoptium installation:
C:\Program Files\Eclipse Adoptium\jdk-8.0.352.8-hotspot\bin\javaw.exe
- Attempt to play installation.
Expected behavior:
Installation starts normally using installed OpenJDK install.
Actual behavior:
Game launch fails with:
Your Java Runtime is incompatible. Please edit your installation to use the bundled Java Runtime. Name: Java version mismatch URL: https://aka.ms/jnierror
In launcher_log.txt I find:
[Info: 2022-11-29 07:17:16.8979863: MinecraftJavaRunningContext.cpp(250)] Java Runtime Version : 1.8.0_352 [Info: 2022-11-29 07:17:16.8979993: MinecraftJavaRunningContext.cpp(251)] Java Runtime Version Required : 8 [Error: 2022-11-29 07:17:16.8980102: MinecraftJavaRunningContext.cpp(259)] Java Runtime mismatch! Please switch java runtime settings to use bundled jre. [Error: 2022-11-29 07:17:16.8980267: MinecraftJavaRunningContext.cpp(292)] Java Check Versions mismatch [Info: 2022-11-29 07:17:16.8980768: MinecraftJavaLoggingContext.cpp(52)] Launcher/monitor (Process Monitor) Fatal Game failed to launch
Seems like the java runtime version check in the latest version of the Minecraft launcher is no longer able to correctly identify that my java runtime version actually is java 8.
Doing some research online, it sounds like this isn't the first time this has been screwed up; people reported that deleting JavaCheck.jar from the Minecraft install folder fixed this issue. I tried doing that and sure enough, my 1.16.5 installation starts up just fine.
Environment
OS: Windows 10
java -version: openjdk version "1.8.0_352"
Created Issue:
Java version check fails when attempting to start Minecraft 1.16.5 with Adoptium OpenJDK 1.8.0_352
Repro steps:
- Install latest Adoptium OpenJDK (1.8.0_352).
- Create a new 1.16.5 installation.
- Edit installation and set Java executable path to javaw in the Adoptium installation:
C:\Program Files\Eclipse Adoptium\jdk-8.0.352.8-hotspot\bin\javaw.exe
- Attempt to play installation.
Expected behavior:
Installation starts normally using installed OpenJDK install.Actual behavior:
Game launch fails with:Your Java Runtime is incompatible. Please edit your installation to use the bundled Java Runtime. Name: Java version mismatch URL: https://aka.ms/jnierrorIn launcher_log.txt I find:
[Info: 2022-11-29 07:17:16.8979863: MinecraftJavaRunningContext.cpp(250)] Java Runtime Version : 1.8.0_352 [Info: 2022-11-29 07:17:16.8979993: MinecraftJavaRunningContext.cpp(251)] Java Runtime Version Required : 8 [Error: 2022-11-29 07:17:16.8980102: MinecraftJavaRunningContext.cpp(259)] Java Runtime mismatch! Please switch java runtime settings to use bundled jre. [Error: 2022-11-29 07:17:16.8980267: MinecraftJavaRunningContext.cpp(292)] Java Check Versions mismatch [Info: 2022-11-29 07:17:16.8980768: MinecraftJavaLoggingContext.cpp(52)] Launcher/monitor (Process Monitor) Fatal Game failed to launchSeems like the java runtime version check in the latest version of the Minecraft launcher is no longer able to correctly identify that my java runtime version actually is java 8.
Doing some research online, it sounds like this isn't the first time this has been screwed up; people reported that deleting JavaCheck.jar from the Minecraft install folder fixed this issue. I tried doing that and sure enough, my 1.16.5 installation starts up just fine.
Environment
OS: Windows 10
java -version: openjdk version "1.8.0_352"
On a semi-related note, this error is pretty unhelpful. It would be nice if the error said what version it found and what it expected. Also, https://aka.ms/jnierror is pretty vague and mostly focused on issues connecting to game services. It would be nice if this error linked to a page that was more specific to this error.
Thank you for your report!
However, this issue is Invalid.
This is a technical support issue; this site is for bug reports only. We do not have the resources to provide you with technical support.
Please contact Mojang Support for assistance and refer to this ticket by providing a link.
Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
I'm using Java 8 with Minecraft 1.16.5 but the java version check included with the newest version of the Minecraft launcher is claiming that I'm not using Java 8. This only started happening after the launcher update that rolled out today. That seems like a bug to me.