title: How to set R Path for integrate with Java
body: <pre><code>I have done the following steps.
  
  
   1. install R -&gt; Which is in C drive.
   2.open R-&gt; install packages -&gt; which is installed in 
      C:\Users\test.user\Documents\R
   3.open-&gt; java project -&gt;  right click(run configurations)-&gt;added new environment variable-&gt; 
  *"PATH":C:\Program Files\R\R-3.4.1\bin\i386,C:\Users\megala.p\Documents\R\win-library\3.4\rJava\jri**
  </code></pre>
  
  <ol start="4">
  <li><p>Workplace default JRE -> jdk 1.8.0_45.</p>
  
  <p>After I have restarted the system and again tried to run application i got a below error:</p>
  
  <p>Cannot find JRI native library!
      Please make sure that the JRI native library is in a directory listed in java.library.path.</p>
  
  <p>java.lang.UnsatisfiedLinkError: no jri in java.library.path
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
          at java.lang.Runtime.loadLibrary0(Runtime.java:870)
          at java.lang.System.loadLibrary(System.java:1122)
          at org.rosuda.JRI.Rengine.(Rengine.java:19)
          at com.test.new.shared.ConfigureREngine.getREngineInstance(ConfigureREngine.java:19)</p></li>
  </ol>
  
  <p>How can I configure java with R?</p>