I am trying to load the rJava using the command:
library(rJava)
But I get the following error:
Error : .onLoad failed i
I faced the same issue and was feeling very down as I couldnt get my analysis done. This worked for me :
check your operating system. 64 bit or 32 bit. https://helpx.adobe.com/x-productkb/global/determine-whether-computer-running-32.html
uninstall previous versions of Java.
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.
install Java based on system requirement (64 bit or 32 bit).
and finally restart R before and after installing rJava package.