[FIX] Java search in Windows

This commit is contained in:
Gravit 2021-07-14 00:06:11 +07:00 committed by GitHub
parent 579fec1518
commit 62e392359d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ public static List<JavaVersion> findJava() {
}
}
if (JVMHelper.OS_TYPE == JVMHelper.OS.MUSTDIE) {
Path rootDrive = IOHelper.getRoot();
Path rootDrive = IOHelper.getRoot().concat("\\\\");
try {
trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("Java"));
trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("AdoptOpenJDK"));