how to find JAVA_HOME code example
Example 1: how to echo java_home in windows cmd
echo %JAVA_HOME%
Example 2: change javahome cmd
setx JAVA_HOME -m "Path"
Example 3: finda java home
dirname $(dirname $(readlink -f $(which javac)))
Example 4: find java home
/usr/libexec/java_home