Install specified Java version and set the JAVA_HOME and PATH environment variables in current R session
JAVA_HOME
PATH
Useful links