Update JAVA_HOME initialization