find the value of JAVA_HOME code example
Example 1: change javahome cmd
setx JAVA_HOME -m "Path"
Example 2: finda java home
dirname $(dirname $(readlink -f $(which javac)))
setx JAVA_HOME -m "Path"
dirname $(dirname $(readlink -f $(which javac)))