Try starting with JRE in 'jre-x86' on x64

This commit is contained in:
Glavo 2022-02-04 12:55:25 +08:00 committed by Yuhui Huang
parent 98e0a92745
commit 8a8918c049

View File

@ -57,9 +57,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
if (isX64) {
RawLaunchJVM(L"jre-x64\\bin\\javaw.exe", workdir, exeName);
} else {
RawLaunchJVM(L"jre-x86\\bin\\javaw.exe", workdir, exeName);
}
RawLaunchJVM(L"jre-x86\\bin\\javaw.exe", workdir, exeName);
if (FindJava(path)) LaunchJVM(path + L"\\bin\\javaw.exe", workdir, exeName);