rJava
. From what I understood, eventually, it is not a problem of rJava
or R or RStudio in the first place, but newer versions of Mac OS X do not play well with the latest versions of Oracle’s Java (jdk). Furthermore, some new security features in Mac OS X prevent that environment path settings are passed along to applications like RStudio.rJava
could not be loaded from within RStudio under Mac OS X El Capitan (version 10.11.2).rJava
does not just fail to load, but the R GUI for Mac terminates instantly and in RStudio the R-session gets closed. Both effects are pretty annoying! See the screen shot below on how that might look like.rJava
on Mac OS X 10.11.2.Java 6
. I downloaded the legacy Java 6 runtime from https://support.apple.com/kb/DL1572?locale=de_DE and installed the downloaded .dmg
file.java_home
on my machine looks as followsjavareconf
gave the following result.rJava
from CRAN did not work, I took the latest version from rforge
and installed that one.rJava
can be loaded, is done as followslibjvm.dylib
cannot be found. Loading this library explicitly, as was described in http://stackoverflow.com/questions/30738974/rjava-load-error-in-rstudio-r-after-upgrading-to-osx-yosemite, finally solves the problem.