在R中使用h2o.init()时出错 [英] Error while using h2o.init() in R

查看:83
本文介绍了在R中使用h2o.init()时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我使用h2o.init()时,都会出现以下错误:

I get the following error whenever I use h2o.init():

localh2o< -h2o.init()

localh2o<-h2o.init()

H2O尚未运行,请立即启动...
system2中的错误(命令,-version",stdout = TRUE,stderr = TRUE):
"找不到
另外:警告消息:
在.h2o.checkJava()中:
在C:/Program Files(x86)/Java/jre7/bin/java.exe中找到了JRE,但是H2O需要JDK才能运行

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

我正在RStudio 0.99.473版和R版本3.2.2(64位操作系统)上运行

I am running it on RStudio Version 0.99.473 and R version 3.2.2, 64 bit os

推荐答案

错误消息非常不言自明:

The error message is pretty self-explanatory:

在C:/Program Files(x86)/Java/jre7/bin/java.exe中找到了JRE,但H2O需要JDK才能运行

Found JRE at C:/Program Files (x86)/Java/jre7/bin/java.exe but H2O requires the JDK to run

如果安装程序未自动将JDK并将JAVA_HOME环境变量指向JDK目录(bin目录的父目录),则需要安装该文件.

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.

这篇关于在R中使用h2o.init()时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆