title: set class path in java from command line .dll file
body: <p>I am using netbeans and by setting the VMoptions to: </p>
  
  <pre><code>-Djava.library.path=C:\Users\a\Desktop\temp\sqljdbc_4.0\enu\auth\x64 
  </code></pre>
  
  <p>my program works perfect. I am trying to run the program from command line. I have tried the following but non seems to be working:</p>
  
  <pre><code>- java -Djava.library.path=C:\Users\a\Desktop\temp\sqljdbc_4.0\enu\auth\x64\sqljdbc_auth.dll  
   // shows the java usage
  
  - System.setProperty("java.library.path","C:\\Users\\a\\Desktop\\temp\\sqljdbc_4.0\\enu\\auth\\x64");
   // wrote it in the code but nothing is happening.
  </code></pre>
  
  <p>Please let me know if I am doing something wrong or there is an alternative way to do it.</p>