title: java.lang.UnsatisfiedLinkError: Unable to load library
body: <pre><code>DLL INSTANCE = (DLL) Native.loadLibrary(Settings.getSingletonInstance().getProperty("default.ergoPointer.path"), DLL.class);
  </code></pre>
  
  <p>I store the dll path in settings file. When i take output of </p>
  
  <pre><code>Settings.getSingletonInstance().getProperty("default.ergoPointer.path"
  </code></pre>
  
  <p>here : <code>C:\Users\Argenit\Desktop\aaa\dll\ErgoPointer_64_Bit.dll</code></p>
  
  <p>Error part :</p>
  
  <blockquote>
    <p>java.lang.UnsatisfiedLinkError: Unable to load library
    'C:\Users\Argenit\Desktop\aaa\dll\ErgoPointer_64_Bit.dll': Native
    library
    (win32-x86-64/C:\Users\Argenit\Desktop\aaa\dll\ErgoPointer_64_Bit.dll)
    not found in resource path
    ([file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/bin/,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/resources/,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/fits.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/json.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/junit-4.8.2.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/kdu_jni.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/log4j-1.2.16.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/JNA/jna-4.1.0.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/JNA/jna-platform-4.1.0.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/ini4j-0.5.4.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/JNA/,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/gluegen-rt.jar,
    file:/C:/Users/Argenit/Desktop/Pathology_JAVA/Digital_Pathology/lib/jogl.jar])</p>
  </blockquote>
  
  <p>If i add (dll) as a external class folder in project and write : <code>loadLibrary("ErgoPointer_64_Bit")</code>, it works in this machine but when i take the runnable jar, it couldn' t find <code>ErgoPointer_64_Bit</code> so i want to give absolute path of dll. But it doesn' t work for me.</p>
  
  <p>I also tried :</p>
  
  <blockquote>
    <p>C:\Users\Argenit\Desktop\aaa\dll\ErgoPointer_64_Bit</p>
    
    <p>dll\ErgoPointer_64_Bit</p>
    
    <p>ErgoPointer_64_Bit</p>
    
    <p>dll\ErgoPointer_64_Bit.dll</p>
    
    <p>ErgoPointer_64_Bit.dll</p>
  </blockquote>