title: How could set the java.library.path in Linux from I am trying JNI
body: <p>I follow this <a href="http://web.archive.org/web/20120419230023/http://java.sun.com/docs/books/jni/html/start.html" rel="nofollow noreferrer">JNI ref</a> to call c function from java.</p>
  <p>In final step, I got follow error msg after I type <strong>java hellojni</strong> :</p>
  <blockquote>
  <p>Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: no helloJni in</p>
  <p>java.library.path</p>
  <p>at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)</p>
  <p>at java.lang.Runtime.loadLibrary0(Runtime.java:870)</p>
  <p>at java.lang.System.loadLibrary(System.java:1122)</p>
  <p>at HelloJni.(HelloJni.java:13)</p>
  </blockquote>
  <p>I try to set up the java.library.path, so I type <strong>java -Djava.library.path=. HelloJni</strong></p>
  <p>But this not works for me, I still got same error message.</p>
  <p>Also, I try <strong>export LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/sybase/IQ-16_0/jim_samples/udf/hellojni</strong>, but is still no work.</p>