Problems requiring rJava in Windows

后端 未结 2 2304
渐次进展
渐次进展 2021-02-20 03:20

I am using a 64-bit machine, with the latest version of R (3.1.2), the latest RStudio version (0.98.1091) and the latest JAVA (Version 8 Update 31).

I tried to require r

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-20 04:06

    I think the problem on this occasion is that your Java is 32-bit, whereas your R is 64-bit. This is why you get a R and Java have different architectures error.

    In order to check what your Java version is on Windows type:

    java -d64 -version
    

    on the command line as it is mentioned here.

    I think that once you install the correct Java version i.e. the 64-bit on this occasion then loading your xlsx library will work!

提交回复
热议问题