Skip to contents

Download and install and set Java in current working/project directory

Usage

java_quick_install(
  version = 21,
  distribution = "Corretto",
  platform = platform_detect()$os,
  arch = platform_detect()$arch,
  verbose = TRUE
)

Arguments

version

The Java version to download. If not specified, defaults to the latest LTS version.

distribution

The Java distribution to download. If not specified, defaults to "Corretto".

platform

The platform for which to download the Java distribution. Defaults to the current platform.

arch

The architecture for which to download the Java distribution. Defaults to the current architecture.

verbose

Whether to print messages. Defaults to TRUE.

Value

Message indicating that Java was installed and set in the current working/project directory.

Examples

if (FALSE) { # \dontrun{
java_quick_install()
} # }