set_java_home: Java for Maven

Description Usage Arguments set/clear JAVA_HOME find java

View source: R/java.R

Description

Maven needs java to run. In this case it means that java needs to be available for maven system commands.

Usage

1
2
3
4
5
set_java_home(java_home = find_java(), quiet = FALSE)

find_java()

clear_java_home(quiet = FALSE)

Arguments

java_home

Character. Indicates location of java on the system. If not provided then the function will attempt to find java using standard install paths.

quiet

Logical. If FALSE the new JAVA_HOME setting will be printed.

set/clear JAVA_HOME

Maven needs to know where java is to run. Setting the JAVA_HOME environment variable can however cause issues with rJava. If issues do arise use clear_java_home after your dependencies are resolved.

find java

Find a JRE/JDK on the system. This is a convenience function to find java on the system. It will use getOption(".java.home") if that is found. Otherwise it will look in standard install locations depending on the system platform.


mitre/mvndeps documentation built on Feb. 18, 2020, 6:13 p.m.