I have installed java11 using
brew install java11
Then I tried the below to get JAVA_HOME
echo $JAVA_HOME
It returned empty . so following the instructions in echo $JAVA_HOME returns nothing
when I have run ls -l /usr/bin/java
i cannot see any jvm path as shown in the above link. Below is what I got
~ % ls -l /usr/bin/java
-rwxr-xr-x 1 root wheel 168432 Dec 8 05:09 /usr/bin/java
ls -l /usr/lib/jvm/
ls: /usr/lib/jvm/: No such file or directory
How to set JAVA_HOME