title: Install xlsx and rJava on macOS Mavericks 10.9.5
body: <p>Its being a real nightmare to install rjava on my Mac.</p>
  
  <p>My setup:</p>
  
  <pre><code>MacOS 10.9.5
  Java: 7u71 (64 bits dowloaded from Oracle site)
  R: R version 3.1.1 (2014-07-10)
  </code></pre>
  
  <p>First, in the command line I ran the </p>
  
  <pre><code>sudo R CMD javareconf
  </code></pre>
  
  <p>Then, I ran inside R:</p>
  
  <pre><code>install.packages('rJava')
  </code></pre>
  
  <p>The error in the end of the compiling is this:</p>
  
  <pre><code>JavaVM -F/opt/local/Library/Frameworks/R.framework/.. -framework R -llzma -lm -liconv -licuuc -licui18n
  ld: library not found for -licuuc
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make[2]: *** [libjri.jnilib] Error 1
  make[1]: *** [src/JRI.jar] Error 2
  make: *** [jri] Error 2
  ERROR: compilation failed for package ‘rJava’
  * removing ‘/Users/costa/Library/R/3.1/library/rJava’
  </code></pre>
  
  <p>I tried Java 8 and the Mac default java and also got the same error.</p>
  
  <p>Ideias?</p>