rJava install error “JAVA_HOME cannot be determined from the Registry”

后端 未结 9 769
独厮守ぢ
独厮守ぢ 2020-11-30 04:57

I am trying to load the rJava using the command:

 library(rJava)

But I get the following error:

 Error : .onLoad failed i         


        
9条回答
  •  有刺的猬
    2020-11-30 05:22

    Under Windows 10, first check your (running) R-Version:

    R.version
    

    If you see something like x86_64, a 64-bit version of Java is needed.

    Simply downloading and installing the matching Java version (https://java.com/en/download/manual.jsp) solved the problem for me. No reinstall of R needed (as suggested by other users here). There also was no need to set the path explicitly.

提交回复
热议问题