Colton Idle
09/18/2025, 1:13 AMephemient
09/18/2025, 4:41 AMKlitos Kyriacou
09/18/2025, 9:31 AMapt install openjdk-17-jdk), which creates the JDK in /usr/lib/jvm/java-17-openjdk-amd64/ and also creates directory /usr/lib/jvm/openjdk-17/ containing directory symbolic links to the real bin etc directories. I also have other versions of the JDK under my home directory. The gradle command found only the two directories in /usr/lib/jvm but didn't find the ones under my home directory. It also considered those two directories in /usr/lib/jvm as if they were two separate installations, instead of being just one.
The Gradle documentation says something about custom toolchains, but it seems you have to tell Gradle where those custom toolchains are, which defeats the purpose. I think it would be more reliable to just use the find command.Colton Idle
09/18/2025, 12:52 PMColton Idle
09/18/2025, 3:22 PM/usr/libexec/java_home -V also works nicely on mac.Colton Idle
09/19/2025, 4:59 PMribesg
09/26/2025, 12:23 PMjava_home might be relevant https://stackoverflow.com/questions/76523553