rJava installation fails on macOS 10.14

前端 未结 4 1806
天涯浪人
天涯浪人 2020-12-19 20:31

After upgrading to MacOS Mojave (10.14.1), I\'m no longer able to install rJava for R version 3.5.1 with Java version \"1.8.0_102\" installed.

I tried

4条回答
  •  时光说笑
    2020-12-19 21:13

    After installing JDK 11.04 LTS I rain into the same error in R Studio on Mojave

    R was expecting Library not loaded: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk

    Despite running sudo R CMD javareconf the error still persisted

    Therefore I browsed to /Library/Java/JavaVirtualMachines/ in finder and renamed the folder "jdk-11.0.4.jdk" to "jdk-11.0.1.jdk"

    Restarted R and both library(rJava) and library(xlsx) now work.

    Hope this helps someone

提交回复
热议问题