change the way of setting JAVA_HOME