[FIX] Eclipse and Liberica Java autodetect

This commit is contained in:
Gravit'a 2021-08-07 11:52:24 +07:00
parent 19344b9d27
commit 1abab46ce4

View file

@ -82,6 +82,8 @@ public static List<JavaVersion> findJava() {
try {
trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("Java"));
trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("AdoptOpenJDK"));
trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("Eclipse Foundation")); //AdoptJDK rebranding
trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("BellSoft")); // LibericaJDK
} catch (IOException e) {
LogHelper.error(e);
}