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)