I have macOS Big Sur (11.0.1) installed and I wonder why the /usr/libexec/java_home command does not print out anything at all in zsh. Only using the -h option
/usr/libexec/java_home