feat: EXE launcher no longer reject Java 11 and later.

This commit is contained in:
huanghongxun
2021-05-24 21:39:16 +08:00
parent 2f17552b2c
commit 61597cb83d
6 changed files with 7 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
using namespace std;
Version J8(TEXT("8")), J11(TEXT("11"));
Version J8(TEXT("8"));
void RawLaunchJVM(const wstring &javaPath, const wstring &jarPath)
{
@@ -20,7 +20,7 @@ void LaunchJVM(const wstring &javaPath, const wstring &jarPath)
if (!MyGetFileVersionInfo(javaPath, javaVersion))
return;
if (J8 <= javaVersion && javaVersion < J11)
if (J8 <= javaVersion)
{
RawLaunchJVM(javaPath, jarPath);
}