Cannot load R xlsx package on Mac OS 10.11

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:

  1. In terminal enter the following to relink Java correctly:

    sudo R CMD javareconf
    
  2. Back in R (or RStudio) install the rJava package from source:

    install.packages("rJava",type="source")
    

Hope, this helps!

Leave a Comment