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

查看:32
本文介绍了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.

http://www.r-statistics.com/2012/08/how-to-load-the-rjava-package-after-the-error-java_home-cannot-be-determined-从注册表/

这篇关于rJava 安装错误“无法从注册表中确定 JAVA_HOME"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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