title: "No Java runtime" error in OS X 10.10 using Oracle's 1.8.0 JVM
body: <p>I've tried 3 different Macs running OS X 10.10, R 3.1.2, Java 1.8.0_25, and rJava 0.9-7. In all three cases rJava installs from source without error but after running .jinit(), fails to detect Java and prompts to install Java 6 from apple. </p>
  
  <p>Something similar happens with Netlogo 5.1.0: </p>
  
  <p><img src="https://i.stack.imgur.com/nh8nj.png" alt="enter image description here"></p>
  
  <p>I've spent hours researching online, but haven't yet found a solution and tried various things like manually setting JAVA_HOME and LD_LIBRARY_PATH to no avail.</p>
  
  <pre><code>R CMD javareconf
  Java interpreter : /usr/bin/java
  Java version : 1.8.0_25
  Java home path : /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
  Java compiler : /usr/bin/javac
  Java headers gen.: /usr/bin/javah
  Java archive tool: /usr/bin/jar
  ...
  ~ % echo $JAVA_HOME
  /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
  ~ % echo $LD_LIBRARY_PATH
  /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/server
  
  ~ % R CMD INSTALL rJava_0.9-7.tar.gz
  ~ % R
  
  library('rJava')
  .jinit()
  No Java runtime present, requesting install.
  </code></pre>
  
  <p>I suspect this has to do with Oracle, because rJava loads the correct JVM, but Oracle's code attempts to fall back to Apple Java or something like that.</p>
  
  <p>Any ideas?</p>