where to find $JAVA_HOME/ code example Example: finda java home dirname $(dirname $(readlink -f $(which javac)))