I installed Big Sur on a VM with JDK 8, 11, and 15 to test java_home.
% /usr/libexec/java_home -V
Matching Java Virtual Machines (3):
15.0.1 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 15"
/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home
11.0.9 (x86_64) "AdoptOpenJDK" -
There is currently no point in running java_home at all on Big Sur. It just
returns what is already in the JAVA_HOME environment variable, or nothing. It
might be best to simply check if the OS is Big Sur and skip running java_home.
And complain to Apple that they’ve broken things.
Scott
> On