Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not Able to Run H2o Function

Tags:

r

rstudio

h2o

I was able to install h2o fine (in R) but get the following error when I run h2o.init()

h2o.init()

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: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

I updated java SE JDK version to 7 (and got the 64 bit) and am still receiving this error. Why is this?

like image 363
Mike Stack Avatar asked Oct 15 '25 04:10

Mike Stack


2 Answers

The problem you have both 32 and 64 bit of Java and then when H2O starts, it still use 32bit Java.

First solution is to remove 32bit java so only 64bit Java is there and you are good to go.

If you have to keep both 32 and 64 bit Java then you would need to setup JAVA_HOME environment variable pointing to your 64bit Java path and then start H2O. This way H2O will get 64bit Java runtime to start and you will not see the problem.

When you set JAVA_HOME make sue you set it correctly and it is pointing to 64bit Java.

like image 199
AvkashChauhan Avatar answered Oct 16 '25 18:10

AvkashChauhan


Maybe you could try to set the environment like this:

>install.packages("h2o")
>library(h2o)
>Sys.setenv(JAVA_HOME="E:/java/JAVA(1)") ##your own path of Java SE intalled
like image 31
tuzhiyoyo Avatar answered Oct 16 '25 16:10

tuzhiyoyo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!