install rJava - “configure: error: One or more JNI types differ from the corresponding native type”

后端 未结 3 668
轮回少年
轮回少年 2021-01-05 14:01

I have came across this problem while installing rJava on R3.0.1: \"configure: error: One or more JNI types differ from the corresponding native type\"

The detailed

3条回答
  •  别那么骄傲
    2021-01-05 14:34

    I hit the same issue on my mac OSx El Capitan. I tried updating the java paths/envs used by R using "R CMD javareconf" with no effects.

    Finally, I saw that when I ran "R CMD javareconf" my Java library path: in the output was empty. By digging up further I figured out that my JAVA_HOME was not set correctly as pointed here https://stackoverflow.com/a/3311983 . I had to add an extra /jre in the JAVA_HOME path.

提交回复
热议问题