windows java_home view code example Example: finda java home dirname $(dirname $(readlink -f $(which javac)))