Skip to contents

Get the current JAVA_HOME environment variable.

Usage

java_get_home()

Value

The value of the JAVA_HOME environment variable.

Examples

java_get_home()
#> [1] "/usr/lib/jvm/temurin-17-jdk-amd64"