title: Java issue with h2o - not recognizing java version
body: <p>I've always used a Mac and don't remember encountering this in the past so I'm not sure what I'm doing wrong.   Theres a bit of q's on this on the internet already but I didn't find a solution yet for me.</p>
  
  <p>I just got a new mac and I'm trying to use rJava &amp; h2o specifically.  Below is a couple of things I ran and the output from them.   Can someone help me out?</p>
  
  <pre><code>Java --version
  </code></pre>
  
  <blockquote>
    <p>java --version java 10.0.1 2018-04-17 Java(TM) SE Runtime Environment
    18.3 (build 10.0.1+10) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)</p>
  </blockquote>
  
  <pre><code>Javac --version
  </code></pre>
  
  <blockquote>
    <p>javac 10.0.1</p>
  </blockquote>
  
  <pre><code>/usr/libexec/java_home -V
  </code></pre>
  
  <blockquote>
    <p>Matching Java Virtual Machines (2):
      10.0.1, x86_64: "Java SE 10.0.1"    /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
        1.8.0_171, x86_64:    "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home</p>
    
    <p>/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home</p>
  </blockquote>
  
  <pre><code>Sys.getenv('JAVA_HOME')
  </code></pre>
  
  <blockquote>
    <p>"/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk"</p>
  </blockquote>
  
  <pre><code>library(h2o)
  h2o.init()
  </code></pre>
  
  <blockquote>
    <p>H2O is not running yet, starting it now...  Error in value[3L] :    You have a 32-bit
    version of Java. H2O works best with 64-bit Java. Please download the
    latest Java SE JDK 7 from the following URL:
    <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html" rel="nofollow noreferrer">http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html</a></p>
  </blockquote>
  
  <p>I definitely have the 64 bit of java installed as I re-installed it to be sure and see above the x64 notification from the output. Also, I have gotten this to work on another computer and so I don't understand what is going on  with this one. </p>
  
  <p>I also did </p>
  
  <pre><code>vim ~/.bash_profile
  EXPORT JAVA_HOME = "/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk"
  </code></pre>
  
  <p>but this doesn't seem to help me target the Java 8.  </p>