java_env_set function

Set the JAVA_HOME and PATH environment variables to a given path