diff --git a/bin/WinLauncher/WinLauncher.exe b/bin/WinLauncher/WinLauncher.exe index d34a21c0a83d..3d648a9e3e52 100644 Binary files a/bin/WinLauncher/WinLauncher.exe and b/bin/WinLauncher/WinLauncher.exe differ diff --git a/bin/WinLauncher/WinLauncher64.exe b/bin/WinLauncher/WinLauncher64.exe index 6fcb99307b94..47794568370b 100644 Binary files a/bin/WinLauncher/WinLauncher64.exe and b/bin/WinLauncher/WinLauncher64.exe differ diff --git a/native/WinLauncher/WinLauncher/WinLauncher.cpp b/native/WinLauncher/WinLauncher/WinLauncher.cpp index c9457e292365..4a2cb2e5dfef 100644 --- a/native/WinLauncher/WinLauncher/WinLauncher.cpp +++ b/native/WinLauncher/WinLauncher/WinLauncher.cpp @@ -233,16 +233,16 @@ bool LocateJVM() } } - if (FindJVMInRegistry()) - { - return true; - } - if (FindJVMInEnvVar("JAVA_HOME", result)) { return result; } + if (FindJVMInRegistry()) + { + return true; + } + std::string jvmError; jvmError = "No JVM installation found. Please install a " BITS_STR " JDK.\n" "If you already have a JDK installed, define a JAVA_HOME variable in\n"