[FIX] Add 'Eclipse Adoptium' to java search directory

This commit is contained in:
Gravita 2024-04-14 21:06:51 +07:00
parent cc6ed82afb
commit 58fd3a7e8b

View file

@ -93,6 +93,7 @@ public synchronized static List<JavaVersion> findJava() {
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("Eclipse Adoptium")); //AdoptJDK rebranding
trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("BellSoft")); // LibericaJDK
} catch (IOException e) {
LogHelper.error(e);