title: Java R Interface (JRI) Setup
body: <p>I am trying to setup the Java/R interface (bundled in the R "rJava" package), but I am having some trouble (despite trying many suggestions here and on other forums).</p>
  
  <p>I am running Windows 7, jdk1.7.0_05, Eclipse, R 2.15.2. These are all 64 bit installations.</p>
  
  <p>The steps I have followed to attempt to get the example running are as follows:</p>
  
  <ol>
  <li>Install rJava within the R GUI: install.packages('rJava') - installs to C:\Users\USERNAME\Documents\R\win-library\2.15\rJava\</li>
  <li>Setup environment variables: R_HOME = "C:\Program Files\R\R-2.15.2", additions to PATH = "C:\Program Files\Java\jdk1.7.0_05\bin";"C:\Program Files\Java\jdk1.7.0_05\jre\bin\server";"C:\Program Files\R\R-2.15.2\bin\x64";"C:\Users\USERNAME\Documents\R\win-library\2.15\rJava\jri\x64"</li>
  <li>Setup example project in Eclipse, setting VM argument: -Djava.library.path="C:\Users\USERNAME\Documents\R\win-library\2.15\rJava\jri\x64"</li>
  <li>Restart R and load rJava with command: libraries('rJava')</li>
  <li>Run the example program, obtaining the following exception:</li>
  </ol>
  
  <p>Cannot find JRI native library!
  Please make sure that the JRI native library is in a directory listed in java.library.path.</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: C:\Users\USERNAME\Documents\R\win-library\2.15\rJava\jri\x64\jri.dll: Can't find dependent libraries
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary1(Unknown Source)
      at java.lang.ClassLoader.loadLibrary0(Unknown Source)
      at java.lang.ClassLoader.loadLibrary(Unknown Source)
      at java.lang.Runtime.loadLibrary0(Unknown Source)
      at java.lang.System.loadLibrary(Unknown Source)
      at org.rosuda.JRI.Rengine.&lt;clinit&gt;(Rengine.java:19)
      at test.JRITest.main(JRITest.java:64)
  </code></pre>
  
  <p>I have verified "java.library.path" is set as expected since: System.out.println("JLP = " + System.getProperty("java.library.path")); outputs the correct path.</p>
  
  <p>I think rJava may not have installed fully (have tried reinstalling), but I'm not sure how to check this. The only JAR in "...\rJava\jri" or any of its subdirectories is "JRI.jar" and the examples directory seems incomplete.</p>
  
  <p>Does anyone have suggestions on what may be going wrong here?</p>
  
  <p>It seems the JRI website (<a href="http://www.rforge.net/JRI/index.html" rel="noreferrer">http://www.rforge.net/JRI/index.html</a>) has been down today, not sure if anyone knows another source to download from (other than direct from CRAN).</p>
  
  <p>Thanks.</p>