Updated sequence of JAVA_HOME env setup