D
D
Dmitry Stepanov2014-10-24 10:48:48
Java
Dmitry Stepanov, 2014-10-24 10:48:48

How to connect R to Java?

Good afternoon. Can't connect JRI to Java. Environment:

  • Windows XP 64
  • R-3.1.1
  • R_HOME is registered
  • Java 1.7
  • I connect jri_0.9-6 to IDEA

Rengine crashes on creation with the following error:

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\R\R-3.1.1\library\rJava\jri\jri.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

jri.dll is in the folder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Khabarov, 2014-10-24
@stepanovD

The error appears to be that you are trying to load a 32bit dll inside a 64bit Java environment.
So it won't work.
Solutions:
1. Use a 32-bit Java environment for execution.
2. Use the 64-bit version of the jri.dll library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question