title: System.LoadLibrary() doesn't find Library
body: <p>I have a library <code>/home/me/myfolder/mylib.so</code></p>
  
  <p>and when executing</p>
  
  <pre><code>System.out.println(System.getProperty("java.library.path"));
  </code></pre>
  
  <p>I get the <code>/home/me/myfolder</code>. But if I try to load it:</p>
  
  <pre><code>System.loadLibrary("mylib");
  </code></pre>
  
  <p>This error happens:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: no mylib.so in java.library.path
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
      at java.lang.Runtime.loadLibrary0(Runtime.java:870)
      at java.lang.System.loadLibrary(System.java:1122)
      at MainClass.main(MainClass.java:11)
  </code></pre>
  
  <p>Already tried to use <code>mylib.so</code> instead. The library was created from Haskell Code. </p>