mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +03:00
[FIX] Поиск подходящей Java
This commit is contained in:
parent
12f73aabcb
commit
5b77e4d8fd
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ public static Path findCorrectJava(Path javaContainerDir)
|
|||
if(!IOHelper.isFile(releaseFile)) continue;
|
||||
Properties properties = new Properties();
|
||||
properties.load(IOHelper.newReader(releaseFile));
|
||||
int javaVersion = getJavaVersion(properties.getProperty("JAVA_VERSION"));
|
||||
int javaVersion = getJavaVersion(properties.getProperty("JAVA_VERSION").replaceAll("\"", ""));
|
||||
if(javaVersion >= 8 && (resultJavaVersion == 0 || javaVersion < resultJavaVersion))
|
||||
{
|
||||
if(javaVersion > 8)
|
||||
|
|
Loading…
Reference in a new issue