title: JNI UnsatisfiedLinkError .jnilib not fond
body: <p>I am having some problems with linking a jnilib in java. I receive 
  <code>Exception in thread "main" java.lang.UnsatisfiedLinkError: no ***.jnlib in java.library.path</code>. 
  Through my research I found that this could be caused by java not knowing were the file was. So, I told it that it was in the Mac folder. I also added the file to every other folder in the project. None of this helped at all. The project is cross platform so I tried it on windows the dll's loaded just fine when I told java  to look in the windows folder. I do not understand why this would work in windows and not on a Mac. Any thoughts or ideas will be welcome.  </p>
  
  <p>The exception output is:</p>
  
  <pre><code>    Exception in thread "main" java.lang.UnsatisfiedLinkError: no libhidapi-jni-64.jnilib in java.library.path
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758) 
          at java.lang.Runtime.loadLibrary0(Runtime.java:823)
          at java.lang.System.loadLibrary(System.java:1045)
          at webstart.OmronIO.&lt;init&gt;(OmronIO.java:30)
          at webstart.Omron.main(Omron.java:13) 
  </code></pre>
  
  <p>The java.library.path is: /Volumes/UNTITLED/javahidapi/mac.</p>
  
  <p>The path to the jinlib is : /Volumes/UNTITLED/javahidapi/mac.</p>