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

后端 未结 9 867
独厮守ぢ
独厮守ぢ 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:27

    I got the same error resolved by installing same version of R and Java i.e. 64 bits and manually updating the path i.e. ,

    Sys.setenv(JAVA_HOME='C:/Program Files/Java/jre1.8.0_121') # for 64-bit version
    

提交回复
热议问题