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 de4a5c4d..ba81ac82 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java @@ -78,7 +78,7 @@ public static List findJava() { } } if (JVMHelper.OS_TYPE == JVMHelper.OS.MUSTDIE) { - Path rootDrive = IOHelper.getRoot().concat("\\\\"); + Path rootDrive = IOHelper.getRoot(); try { trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("Java")); trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("AdoptOpenJDK"));