1. What is Java Home
Many Java applications need to know the location of a
$JAVA_HOME directory. The
$JAVA_HOME on Mac OS X should be found using the
/usr/libexec/java_home command-line tool on Mac OS X 10.5 or later. On older Mac OS X versions where the tool does not exist, use the fixed path "
/usr/libexec/java_home tool dynamically finds the top Java version…