title: JNA library path seems to be ignored
body: <p>I'm trying to specify the library load path for JNA on linux for a C++ library.
  From the java doc I used <code>-Djna.library.path</code> when calling my program but JNA fails to load the library.</p>
  
  <p>This is how I call the program:</p>
  
  <pre><code>java -jar -Djna.library.path=/home/lib program.jar
  </code></pre>
  
  <p>When I use <code>-Djna.debug_load=true</code> I can see the library path and JNA trying to find the library, the path is correct and the library name is also correct, but it doesn't load. JNA continues to search the resource path for the library and then fails to find it.</p>
  
  <p>When I put the library in the current directory (same level as program.jar) JNA is happy and the library is loaded without issue.</p>
  
  <p>When I use:</p>
  
  <pre><code>java -cp program.jar:/home/lib package.program
  </code></pre>
  
  <p>JNA also loads the correct library.</p>
  
  <p>Does anyone here know why <code>-Djna.library.path</code> does not work? Is it because I'm using a jar application file with a manifest?</p>
  
  <p>Anyone with a similar problem?</p>