Configure Java Environment on macOS Big Sur
macOS Big Sur (ver. 11.2.3) doesn’t have pre-installed Java anymore, the best option is to install AdoptOpenJDK.
You can download the OpenJDK pkg binary and install it manually like here,
or install AdoptOpenJDK via
brew in your favourite terminal:
Hope it helps.