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
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