update JAVA_HOME environment var