Unable to load rJava on R

后端 未结 8 2080
野趣味
野趣味 2020-11-27 05:14

I wish to load rJava in R x64 3.1.2. OS- Windows 8.1 64 bit

Though installation seems to work fine:

  > install.packages(\"rJava\")
    Installing         


        
8条回答
  •  天涯浪人
    2020-11-27 05:19

    I've met a similar problem and spent an entire day to get it fixed. Although my computer, windows7, and Rstudio are 64 bit, but my Java is 32 bit(!) Once I realized that, I download a 64 bit Java. I have to manually download, the automatic download will lead to the 32 bit version because my chrome browser is 32 bit. 64 bit Java will be automatically installed in

    C:\Program Files\Java, however, 32 bit Java will be automatically installed in C:\Program Files (x86) \Java.

    This is an important indicator telling me my Java is 64 bit or 32 bit.

    After installing the 64 bit Java, everything works perfect!

提交回复
热议问题