[FIX] Поиск подходящей Java

This commit is contained in:
Gravit 2020-06-15 13:20:34 +07:00
parent 12f73aabcb
commit 5b77e4d8fd
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -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)