title: How to configure .dll file in Java?
body: <p>I am using <a href="http://sourceforge.net/projects/jacob-project/develop" rel="noreferrer">Jacob</a> jar file in my java application.</p>
  
  <p>This Jacob jar file comes with a .dll file. I have added Jacob jar file to my classpath. But when I execute my application a runtime error occurs as </p>
  
  <pre><code>"couldn't load jacob-1.15-M3-x86.dll file"
  </code></pre>
  
  <p>How can I load this .dll file?</p>
  
  <p>Edited:=================================================================================</p>
  
  <p>I had set the "path" environment varaible to the dir that contains my .dll file and loading that .dll file as follows</p>
  
  <pre><code>static {
      System.loadLibrary("jacob-1.15-M3-x86.dll");
  }
  </code></pre>
  
  <p>but the following error occured</p>
  
  <pre><code>    java.lang.UnsatisfiedLinkError: no jacob-1.15-M3-x86.dll in java.library.path
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
      at java.lang.Runtime.loadLibrary0(Runtime.java:823)
      at java.lang.System.loadLibrary(System.java:1028)
      at TemplateClass.TemplateClass.&lt;clinit&gt;(TemplateClass.java:14)
  </code></pre>