title: Importing DLL into Eclipse Java project
body: <p>To import DLL into Eclipse Java project, I checked the "java.library.path"</p>
  
  <pre><code>String path = System.getProperty("java.library.path");
  System.out.println(path);
  </code></pre>
  
  <p>One of the <code>path</code> values was equal to <code>C:/Windows/System32</code>. Therefore I saved <code>myAPI.dll</code> in <code>C:/Windows/System32</code>. Then I called <code>System.loadLibrary</code>:</p>
  
  <pre><code>System.loadLibrary("myAPI.dll");
  </code></pre>
  
  <p>And got the error message:</p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: myAPI.dll
      at java.lang.Runtime.load0(Unknown Source)
      at java.lang.System.load(Unknown Source)
  </code></pre>
  
  <p>BTW, I tried to put my DLL file in different other directories that was mentioned in <code>path</code>. But each time I got the same error message. How to solve this problem?</p>