Unfortunately, these symlink tricks didn’t help me. However, I found a similar issue on stackoverflow! (where else ;))
This one worked for me by doing the following:
-
In terminal enter the following to relink Java correctly:
sudo R CMD javareconf
-
Back in R (or RStudio) install the rJava package from source:
install.packages("rJava",type="source")
Hope, this helps!