Package: rJavaEnv Title: 'Java' Environments for R Projects Version: 0.3.0.9000 Authors@R: c( person("Egor", "Kotov", , "kotov.egor@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-6690-5345")), person("Chung-hong", "Chan", , "chainsawtiney@gmail.com", role = "aut", comment = c(ORCID = "0000-0002-6232-7530")), person("Mauricio", "Vargas", , "mavargas11@uc.cl", role = "ctb", comment = c(ORCID = "0000-0003-1017-7574")), person("Hadley", "Wickham", , "hadley@posit.co", role = "ctb", comment = "use_java feature suggestion and PR review"), person("Enrique", "Mondragon-Estrada", , "enriquemondragon@proton.me", role = "ctb", comment = c(ORCID = "0009-0004-5592-1728")), person("Jonas", "Lieth", , "jonas.lieth@gesis.org", role = "ctb", comment = c(ORCID = "0000-0002-3451-3176")) ) Description: 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. License: MIT + file LICENSE URL: https://github.com/e-kotov/rJavaEnv, https://www.ekotov.pro/rJavaEnv/ BugReports: https://github.com/e-kotov/rJavaEnv/issues Depends: R (>= 4.0) Imports: checkmate, cli, curl, digest, memoise, RcppSimdJson, rlang, utils, withr, yaml Suggests: callr, quarto, rJava, testthat (>= 3.0.0) VignetteBuilder: quarto Config/testthat/edition: 3 Encoding: UTF-8 Language: en-US Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.3 Config/pak/sysreqs: libssl-dev Repository: https://e-kotov.r-universe.dev Date/Publication: 2026-06-13 20:13:40 UTC RemoteUrl: https://github.com/e-kotov/rJavaEnv RemoteRef: HEAD RemoteSha: ae11c95f09dc64865fb4c2118a79091bb1da6f47 NeedsCompilation: no Packaged: 2026-07-13 09:36:11 UTC; root Author: Egor Kotov [aut, cre, cph] (ORCID: ), Chung-hong Chan [aut] (ORCID: ), Mauricio Vargas [ctb] (ORCID: ), Hadley Wickham [ctb] (use_java feature suggestion and PR review), Enrique Mondragon-Estrada [ctb] (ORCID: ), Jonas Lieth [ctb] (ORCID: ) Maintainer: Egor Kotov