hwo to find java home directory code example Example: finda java home dirname $(dirname $(readlink -f $(which javac)))