Package: rJavaEnv 0.3.0.9000

rJavaEnv: 'Java' Environments for R Projects

Quickly install 'Java Development Kit (JDK)' without administrative privileges and set environment variables in current R session or project to solve common issues with 'Java' environment management in 'R'. Recommended to users of 'Java'/'rJava'-dependent 'R' packages such as 'r5r', 'opentripplanner', 'xlsx', 'openNLP', 'rWeka', 'RJDBC', 'tabulapdf', and many more. 'rJavaEnv' prevents common problems like 'Java' not found, 'Java' version conflicts, missing 'Java' installations, and the inability to install 'Java' due to lack of administrative privileges. 'rJavaEnv' automates the download, installation, and setup of the 'Java' on a per-project basis by setting the relevant 'JAVA_HOME' in the current 'R' session or the current working directory (via '.Rprofile', with the user's consent). Similar to what 'renv' does for 'R' packages, 'rJavaEnv' allows different 'Java' versions to be used across different projects, but can also be configured to allow multiple versions within the same project (e.g. with the help of 'targets' package). For users who need to install 'rJava' or other 'Java'-dependent packages from source, 'rJavaEnv' will display a message with instructions on how to run 'R CMD javareconf' to make the 'Java' configuration permanent, but also provides a function 'java_build_env_set' that sets the environment variables in the current R session temporarily to allow installation of 'rJava' from source without 'R CMD javareconf'. On 'Linux', in addition to setting environment variables, 'rJavaEnv' also dynamically loads 'libjvm.so' to ensure 'rJava' works correctly. See documentation for more details.

Authors:Egor Kotov [aut, cre, cph], Chung-hong Chan [aut], Mauricio Vargas [ctb], Hadley Wickham [ctb], Enrique Mondragon-Estrada [ctb], Jonas Lieth [ctb]

rJavaEnv_0.3.0.9000.tar.gz
rJavaEnv_0.3.0.9000.zip(r-4.6)rJavaEnv_0.3.0.9000.zip(r-4.5)rJavaEnv_0.3.0.9000.zip(r-4.4)
rJavaEnv_0.3.0.9000.tgz(r-4.5-any)
rJavaEnv_0.3.0.9000.tar.gz(r-4.6-any)rJavaEnv_0.3.0.9000.tar.gz(r-4.5-any)
rJavaEnv_0.3.0.9000.tgz(r-4.5-emscripten)
rJavaEnv.pdf |rJavaEnv.html
rJavaEnv/json (API)
NEWS

# Install 'rJavaEnv' in R:
install.packages('rJavaEnv', repos = c('https://e-kotov.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/e-kotov/rjavaenv/issues

Pkgdown/docs site:https://www.ekotov.pro

On CRAN:

Conda:

environmentsjavareproducibilityreproducible-researchquarto

7.57 score 21 stars 20 scripts 971 downloads 16 exports 6 dependencies

Last updated from:bae39a3f87. Checks:9 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK156
source / vignettesOK234
linux-release-x86_64OK155
macos-release-arm64OK151
macos-oldrel-arm64OK179
windows-develOK131
windows-releaseOK103
windows-oldrelOK125
wasm-releaseOK140

Exports:java_build_env_setjava_build_env_unsetjava_check_version_cmdjava_check_version_rjavajava_clearjava_downloadjava_env_setjava_env_unsetjava_get_homejava_installjava_listjava_quick_installjava_unpackjava_valid_versionsrje_consentuse_java

Dependencies:backportscheckmateclicurljsonliterlang

Install rJava from source

Rendered frominstall-rjava-from-source.qmdusingquarto::htmlon Dec 08 2025.

Last update: 2025-09-07
Started: 2025-09-07

Multiple Java environments in one project with targets and callr

Rendered frommultiple-java-with-targets-callr.qmdusingquarto::htmlon Dec 08 2025.

Last update: 2025-09-07
Started: 2024-08-28

Quick Start Guide: Java Setup for 'R' Projects

Rendered fromrJavaEnv.qmdusingquarto::htmlon Dec 08 2025.

Last update: 2025-09-07
Started: 2024-08-20

Step-by-step: Download, Install, and Setup Java for 'R' Projects

Rendered fromrJavaEnv-step-by-step.qmdusingquarto::htmlon Dec 08 2025.

Last update: 2024-08-28
Started: 2024-08-20

  • Image