title: JNA java.lang.UnsatisfiedLinkError: Unable to load library './OUNPPM'
body: <p>So, I have a project that uses a series of external C <code>.dll</code>s and it works fine when running in Netbeans, but when I try to run the <code>.jar</code> by itself, I get this error:</p>
  
  <blockquote>
    <p>Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: Unable to load library './OUNPPM': The specified module could not be found.</p>
  </blockquote>
  
  <p>I've encountered this before for a few different reasons:</p>
  
  <p>1) Not finding the file.
  2) Not finding another .dll that .dll is dependent on.
  3) Trying to load a 64-bit .dll with the 32-bit JRE (or vice versa)</p>
  
  <p>Is there any way to get a better error message to find out what is going on?  JNI gave better errors, but I'm not really at a place I can change those right now.</p>