rJava安装错误“无法从注册表中确定JAVA_HOME". [英] rJava install error "JAVA_HOME cannot be determined from the Registry"

查看:442
本文介绍了rJava安装错误“无法从注册表中确定JAVA_HOME".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令加载rJava:

I am trying to load the rJava using the command:

 library(rJava)

但是出现以下错误:

 Error : .onLoad failed in loadNamespace() for 'rJava', details:
   call: fun(libname, pkgname)
   error: JAVA_HOME cannot be determined from the Registry
 Error: package or namespace load failed for ‘rJava’

我尝试用最新版本重新安装Java和R程序 但仍然会收到这些错误. 我可以知道如何解决这个问题吗?非常感谢你!

I tried reinstalling both the Java and the R program with the latest versions but still get these errors.. May I know how I can resolve this? Thank you very much!

推荐答案

通常通过安装适合您所用R版本类型的Java版本(即64位Java或32位Java)来解决此错误.使用(即64位R或32位R).这个问题很容易影响Windows 7用户,因为他们安装的Java版本可能不同于他们使用的R版本.

This error is often resolved by installing a Java version (i.e. 64-bit Java or 32-bit Java) that fits to the type of R version that you are using (i.e. 64-bit R or 32-bit R). This problem can easily effect Windows 7 users, since they might have installed a version of Java that is different than the version of R they are using.

查看全文

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