title: Cannot load native library. Error: java.lang.UnsatisfiedLinkError
body: <p>I am having trouble getting Java to see the file 'libvensim.so' that I have in my home directory.</p>
  
  <p>I have tried setting LD_LIBRARY PATH...."echo $LD_LIBRARY_PATH" returns "./libvensim.so"</p>
  
  <p>When I run the code:</p>
  
  <pre><code>java -cp ./vensim.jar:. -Djava.library.path=./libvensim.so Test
  </code></pre>
  
  <p>I get the error "Cannot load native library. Error: java.lang.UnsatisfiedLinkError: no libvensim in java.library.path".</p>
  
  <p>Test.java is a simple class to test whether I can access the .so:</p>
  
  <pre><code>import com.vensim.Vensim;
  
  public class Test {
  
  public static void main(String[] args) throws Exception {
  
      Vensim vensim = new Vensim("libvensim");
  
  }
  
  }
  </code></pre>
  
  <p>Can anyone see my problem?  Thanks very much.</p>