title: Cannot find JRI native library. Please make sure that the JRI native library is in a directory listed in java.library.path
body: <p>I've tried the method as in this website: "<a href="http://codophile.com/2015/04/15/how-to-integrate-r-with-java-using-rjava/" rel="nofollow noreferrer">http://codophile.com/2015/04/15/how-to-integrate-r-with-java-using-rjava/</a>" followed instructions and ran in eclipse but get error:</p>
  
  <blockquote>
    <p>"Cannot find JRI native library!
    Please make sure that the JRI native library is in a directory listed in java.library.path."</p>
  </blockquote>
  
  <p>Later copied jri.dll from rjava library location to native jdk bin folder and again re-ran that, got the output fine!!!</p>
  
  <p>Tried this method also:</p>
  
  <p><code>-Djava.library.path="C:\Users\[USER_NAME]\Documents\R\win-library\3.5\rJava\jri\x64;C:\Program Files\R\R-3.5.0\bin\x64";"C:\Program Files\Java\jdk1.8.0_172\jre\bin";"C:\Program Files\Java\jdk1.8.0_172\bin"</code></p>
  
  <p>in eclipse VM argument. Not getting the output untill the jri is copied to native java libary.</p>
  
  <p>But I want some other method as copying the .dll file to jdk folder is not much that correct way. If there is any another good method of getting output please reply.</p>