Looking for $JAVA_HOME
The path of your current applied java home
/usr/libexec/java_home
Or
List all of java homes
/usr/libexec/java_home -V
Looking for $JAVA_HOME
The path of your current applied java home
/usr/libexec/java_home
Or
List all of java homes
/usr/libexec/java_home -V