title: JNI UnsatisfiedLinkError dependent libraries
body: <p>I have a JNI dll along with a jar file that I have created on a machine with eclipse.</p>
  
  <p>I am trying to deploy this to another machine and cannot get past the exception</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\CcmAccess\CcmJNIBase.dll: Can't find dependent libraries
          at java.lang.ClassLoader$NativeLibrary.load(Native Meth
          at java.lang.ClassLoader.loadLibrary1(Unknown Source)
          at java.lang.ClassLoader.loadLibrary0(Unknown Source)
          at java.lang.ClassLoader.loadLibrary(Unknown Source)
          at java.lang.Runtime.loadLibrary0(Unknown Source)
          at java.lang.System.loadLibrary(Unknown Source)
          at com.sig.ccm.CcmBase.&lt;clinit&gt;(CcmBase.java:8)
          at ReadTimeDomain.setupSample(ReadTimeDomain.java:24)
          at ReadTimeDomain.main(ReadTimeDomain.java:97)
  </code></pre>
  
  <p>I have another program that prints out the java.library.path and I have verified the dll that this dll depends on as well as this dll are in the java.library.path.</p>
  
  <p>I have read posts where they should go in the current directory and that doesn't work.</p>
  
  <p>I have read posts where they should go in the jre/bin and that gets the same result.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Edit:</p>
  
  <p>If I take everything out of the path and force the classpath to only have the jar file and "." I get the message</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: no CcmJNIBase in java.library.path
  </code></pre>
  
  <p>When I add the location of this dll into the path C:\CcmAccess I get the full message:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\CcmAccess\CcmJNIBase.dll: Can't find dependent libraries
  </code></pre>
  
  <p>On the machine that this seems to work all I had to do was add the dependent dll to my classpath.</p>