title: jri.dll: Can't find dependent libraries
body: <p>I am trying to setup a Java project on a Windows computer that invokes R code using rJava/JRI. I have installed <code>JDK 1.8</code>, <code>R 3.5.3</code> and <code>rJava</code> library in R on my computer. I have added the following to my <code>Path</code>variable: <code>D:\Program Files\R\R-3.5.3\bin\x64; D:\Program Files\R\R-3.5.3\library\rJava\jri\x64</code>. I have also configured the Build Path in Eclipse by adding the three JAR files from the jri folder as external JARs and by changing the native library to <code>D:/Program Files/R/R-3.5.3/library/rJava/jri/x64</code>. These are the same steps that I've recently done on another Windows computer and afterwards the R test script worked perfectly. However, on my current computer I keep getting the following message:</p>
  
  <pre><code>Please make sure that the JRI native library is in a directory listed in java.library.path.
  
  java.lang.UnsatisfiedLinkError: D:\Program Files\R\R-3.5.3\library\rJava\jri\x64\jri.dll: Can't find dependent libraries
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      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 rtest.main(rtest.java:61)
  </code></pre>
  
  <p>Any idea what's going wrong? I would be really greatful for any help.</p>
  
  <p>EDIT: Here is what my Build Path looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/ucWDI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ucWDI.png" alt="Build Path"></a></p>
  
  <p>EDIT2: Additionally, I have now copied all <code>.DLL</code> files from <code>D:\Program Files\R\R-3.5.3\bin\x64</code> together with <code>jri.dll</code> to <code>D:\Program Files\Java\jdk1.8.0_201\bin</code> as recommended <a href="https://stackoverflow.com/questions/19100875/java-r-interface-jri-setup">here</a>. Still no luck.</p>