From 5b77e4d8fd937e8571b2257213c57ce83e263435 Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 15 Jun 2020 13:20:34 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9F=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B4=D1=85=D0=BE=D0=B4=D1=8F=D1=89=D0=B5=D0=B9=20Java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/pro/gravit/launcher/ClientLauncherWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java b/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java index 1e34349a..fc79f4e2 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java +++ b/Launcher/src/main/java/pro/gravit/launcher/ClientLauncherWrapper.java @@ -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)