将Java连接到R

时间:2014-10-16 03:58:59

标签: java r jri

我想使用JRI将Java连接到R.我在R consul中安装了rJava并设置了R_Path:

R_Path=C:\Users\fmar825\Documents\R\win-library\3.1\rJava\jri
PATH=JLP = C:\Program Files\Java\jdk1.8.0_20\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;

我运行我的项目但仍然出现以下错误。

运行:

JLP = C:\Program Files\Java\jdk1.8.0_20\bin;C:\Windows\Sun\Java\bin;C:
\Windows\system32;C:\Windows;.
Cannot find JRI native library!
Please make sure that the JRI native library is in a directory listed in java.library.path.

java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.8.0_20\bin\jri.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1119)
    at org.rosuda.JRI.Rengine.<clinit>(Rengine.java:19)
    at rtest.main(rtest.java:63)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

0 个答案:

没有答案