If you're already using Java 15 everything works fine (tested with AdoptOpenJDK 15, installed with homebrew). Big Sur's /usr/libexec/java_home will detect Java 15 and set appropriate environment variables.
However /usr/libexec/java_home does not find Java 11 (tested with AdoptOpenJDK 11, installed with homebrew). Reinstall has no effect. Calling /usr/libexec/java_home -v 11 returns the path of Java 15. So yes, this seems to be broken in the shell. But IDEs with their own JDK configuration like IntelliJ are still able to use Java 11.
I haven't tried other versions than AdoptOpenJDK 11 and 15, but I guess they will behave like 11. Also note that I'm using homebrew to install all my developer tools and homebrew currently says:
Warning: You are using macOS 11.0.
We do not provide support for this released but not yet supported version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or any other official channels. You are responsible for
resolving any issues you experience while you are running this
released but not yet supported version.
Here's what I've found out so far:
If you're already using Java 15 everything works fine (tested with AdoptOpenJDK 15, installed with homebrew). Big Sur's
/usr/libexec/java_home
will detect Java 15 and set appropriate environment variables.However
/usr/libexec/java_home
does not find Java 11 (tested with AdoptOpenJDK 11, installed with homebrew). Reinstall has no effect. Calling/usr/libexec/java_home -v 11
returns the path of Java 15. So yes, this seems to be broken in the shell. But IDEs with their own JDK configuration like IntelliJ are still able to use Java 11.I haven't tried other versions than AdoptOpenJDK 11 and 15, but I guess they will behave like 11. Also note that I'm using homebrew to install all my developer tools and homebrew currently says:
Sorry, but it doesn't work .. with JDK 15 the NetBeans installer still can't find the JDK.