diff --git a/native/WinLauncher/WinLauncher/WinLauncher.cpp b/native/WinLauncher/WinLauncher/WinLauncher.cpp index e085b186a1b8..8d5ff13a46ed 100644 --- a/native/WinLauncher/WinLauncher/WinLauncher.cpp +++ b/native/WinLauncher/WinLauncher/WinLauncher.cpp @@ -190,7 +190,7 @@ bool LocateJVM() return result; } - std::string jreDir = GetAdjacentDir("jre"); + std::string jreDir = GetAdjacentDir(need64BitJRE ? "jre64":"jre"); if (FindValidJVM(jreDir.c_str()) && Is64BitJRE(jvmPath) == need64BitJRE) { return true;