From 8ddb1b5053f9709901b22d4b2cc8bbdb9392dab0 Mon Sep 17 00:00:00 2001 From: MagTemTenebrius Date: Mon, 9 Jan 2023 14:41:10 +0500 Subject: [PATCH] JRE rt lib in jre/lib/rt.jar --- .../src/main/java/pro/gravit/utils/helper/JavaHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java index 77e1ce5d..1368d52d 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java @@ -266,9 +266,10 @@ public static JavaVersion getByPath(Path jvmDir) throws IOException { public static boolean isExistExtJavaLibrary(Path jvmDir, String name) { Path jrePath = jvmDir.resolve("lib").resolve("ext").resolve(name.concat(".jar")); + Path jrePathLin = jvmDir.resolve("lib").resolve(name.concat(".jar")); Path jdkPath = jvmDir.resolve("jre").resolve("lib").resolve("ext").resolve(name.concat(".jar")); Path jdkPathLin = jvmDir.resolve("jre").resolve("lib").resolve(name.concat(".jar")); - return IOHelper.isFile(jrePath) || IOHelper.isFile(jdkPath) || IOHelper.isFile(jdkPathLin); + return IOHelper.isFile(jrePath) || IOHelper.isFile(jdkPath) || IOHelper.isFile(jdkPathLin) || IOHelper.isFile(jrePathLin); } } }