title: Does -Djava.library.path work on UNIX JVMs?
body: <p>I have a Java application that relies on some legacy code written in C, which it accesses via JNI. The native libraries are stored in a sub-directory (actually, there are two sub-dirs: one with 32-bit libraries and one with 64-bit).</p>
  
  <p>In Windows, the following command line form works fine:</p>
  
  <pre><code>java -Djava.library.path=nativelib64 -classpath myapp.jar;jni_lib.jar MyApplication
  </code></pre>
  
  <p>but the equivalents on AIX and Linux (basically with the semi-colon in the classpath replaced with a colon) are failing with UnsatisfiedLinkErrors - I'm having to resort to setting the LIBPATH or LD_LIBRARY_PATH explicitly before the call, as nothing I've tried setting -Djava.library.path to (e.g. "nativelib64", "./nativelib64", "/full/path/to/myappdir/nativelib64") seems to be working.</p>
  
  <p>Do the UNIX versions of the JVM not support setting the java.library.path property from the command line?</p>