Added simple function to change JAVA_HOME.