title: How to run a Jar-file with external libraries?
body: <p>When I run the Jar-file inside netbeans it works.
  But after I clean and build it, it won't run.
  It gives me an error, that the Mainclass couldn't be found.</p>
  
  <p>I tried already something like:</p>
  
  <pre><code>java -cp C:\javaProjectsTests\J.jar;C:\javaProjectsTests\lib\*;. j.J
  
  java -Djava.library.path=C:\javaProjectsTests\lib\* -jar C:\javaProjectsTests\J.jar
  </code></pre>
  
  <p>Maybe someone could help?</p>