feat: Supported JRE from SDKMAN! on Linux (#3062)

This commit is contained in:
vochant 2024-09-19 03:09:05 +08:00 committed by GitHub
parent 8a816f7f35
commit 97fe52c2a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -329,6 +329,9 @@ public final class JavaVersion {
javaExecutables.add(listDirectory(Paths.get("/usr/java")).map(JavaVersion::getExecutable)); // Oracle RPMs
javaExecutables.add(listDirectory(Paths.get("/usr/lib/jvm")).map(JavaVersion::getExecutable)); // General locations
javaExecutables.add(listDirectory(Paths.get("/usr/lib32/jvm")).map(JavaVersion::getExecutable)); // General locations
// SDKMAN!
javaExecutables.add(listDirectory(Paths.get(System.getProperty("user.home"), ".sdkman/candidates/java"))
.map(JavaVersion::getExecutable));
break;
case OSX: