how to check java_home path code example
Example 1: how to echo java_home in windows cmd
echo %JAVA_HOME%
Example 2: finda java home
dirname $(dirname $(readlink -f $(which javac)))
echo %JAVA_HOME%
dirname $(dirname $(readlink -f $(which javac)))