问题
I get the following error whenever I use h2o.init()
:
localh2o<-h2o.init()
H2O is not running yet, starting it now...
Error in system2(command, "-version", stdout = TRUE, stderr = TRUE) :
'""' not found
In addition: Warning message:
In .h2o.checkJava() :
Found JRE at C:/Program Files (x86)/Java/jre7/bin/java.exe but H2O requires the JDK to run
I am running it on RStudio Version 0.99.473 and R version 3.2.2, 64 bit os
回答1:
The error message is pretty self-explanatory:
Found JRE at C:/Program Files (x86)/Java/jre7/bin/java.exe but H2O requires the JDK to run
You need to install the JDK and point the JAVA_HOME environment variable to the JDK directory (the parent of the bin directory), if it isn't automatically done by the installer.
来源:https://stackoverflow.com/questions/32896008/error-while-using-h2o-init-in-r