Its being a real nightmare to install rjava on my Mac.
My setup:
MacOS 10.9.5
Java: 7u71 (64 bits dowloaded from Oracle site)
R: R version 3.1.1 (201
What I did (using macports R) as root (sudo bash):
edit
/opt/local/Library/Frameworks/R.framework/Resources/etc/Makeconf
and change the line
LIBS = -llzma -lm -liconv -licuuc -licui18n
to
LIBS = -llzma -lm -liconv
install the original 1.6 Mac Java
export
JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
run R CMD javareconf
Now you can start R and do a install.packages("rJava")
. Using the 1.6 version of Java made sure that also RStudio can load the rJava package.
If you do not plan using RStudio, you can also use Java 1.8