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

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

    I faced the same issue and was feeling very down as I couldnt get my analysis done. This worked for me :

    1. check your operating system. 64 bit or 32 bit. https://helpx.adobe.com/x-productkb/global/determine-whether-computer-running-32.html

    2. uninstall previous versions of Java.

    3. delete rJAVA library from Doc>R>win-library. If you have more than 1 versions of R, make sure you delete rJAVA package from all of them.

    4. install Java based on system requirement (64 bit or 32 bit).

    5. and finally restart R before and after installing rJava package.

提交回复
热议问题