mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-11-27 06:10:08 +08:00
feat: Supported JRE from SDKMAN! on Linux (#3062)
This commit is contained in:
parent
8a816f7f35
commit
97fe52c2a7
@ -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/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/lib/jvm")).map(JavaVersion::getExecutable)); // General locations
|
||||||
javaExecutables.add(listDirectory(Paths.get("/usr/lib32/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;
|
break;
|
||||||
|
|
||||||
case OSX:
|
case OSX:
|
||||||
|
Loading…
Reference in New Issue
Block a user