I am facing the same issue big sure 11.2.3 version
Some times it detects sometime not...
Depends totally on my system mood
Post
Replies
Boosts
Views
Activity
I Faced the similar issue, Javajome previously set on Catalina OS wasn't working anymore when I upgraded to Big Sur.
though the below commands worked for me
/usr/libexec/java_home -V
/usr/libexec/java_home -v "1.8.0_241"
export JAVA_HOME=$(/usr/libexec/java_home -v "1.8.0_241")
echo $JAVA_HOME