title: Add .dll to java.library.path in Eclipse/PyDev Jython project
body: <p>I'm trying to use a compiled .jar Java library in my PyDev Jython project.</p>
  
  <p>I successfully added the .jar to the PYTHONPATH and was able to begin coding with auto complete working.</p>
  
  <p>The library requires a .dll extension as well, <code>javaHeclib.dll</code>, so I added that to the External Libs section of my project.</p>
  
  <p>I can import the library fine, but I get an error when I try to access any of its functions:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: no javaHeclib in java.library.path
  </code></pre>
  
  <p>I added a VM argument to my Run Configuration, with no luck:</p>
  
  <pre><code>-Djava.library.path="Y:/path/to/javaHeclib.dll;${env_var:PATH}"
  </code></pre>
  
  <p>I can run the library from the command line just fine using the <code>java.library.path</code> above.</p>
  
  <p>Experimenting in the PyDev Console, I noticed I can load the .dll extension with an absolute path, but not a relative one:</p>
  
  <pre><code>&gt;&gt;&gt; import java.lang
  &gt;&gt;&gt; java.lang.System.load('Y:/path/to/javaHeclib.dll')
  &gt;&gt;&gt; java.lang.System.loadLibrary('javaHeclib')
  Traceback (most recent call last):
    File "&lt;console&gt;", line 1, in ?
  java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: no javaHeclib in java.library.path
  </code></pre>
  
  <p>Unfortunately, the library is using the the <code>System.loadLibrary</code> call above, and I don't have access to its source.</p>
  
  <p>Why is <code>javaHeclib.dll</code> not in my <code>java.library.path</code>?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Setting the <code>java.library.path</code> to the directory containing the dll didn't allow me to load it using <code>System.loadLibrary</code>.</p>
  
  <pre><code>-Djava.library.path="Y:/path/to/dll/;${env_var:PATH}"
  </code></pre>
  
  <p>(Using forward slashes didn't make a difference.) I also tried changing the default VM args in <code>eclipse.ini</code>, with no luck:</p>
  
  <pre><code>-vmargs
  -Dosgi.requiredJavaVersion=1.5
  -Xms40m
  -Xmx384m
  -Djava.library.path="Y:\path\to\dll\;${env_var:PATH}"
  </code></pre>