title: How to compile and run a Netbeans java project in command line without jar file?
body: <p>I have a java Netbeans project having directory structure:</p>
  
  <pre><code>EMailQueue/
  |-build/
  |-classes/
  |-mailqueue/
  |-nbproject/
  |-src/
   |-mailqueue/
  |-dist/
   |-lib/
  |-build.xml
  |-maifest.mf
  </code></pre>
  
  <p><code>build/classes/mailqueue/</code> directory consists of all the classes compiled from all the .java files in <code>src/mailqueue/</code> directory and <code>dist/lib/</code> consists of all the .jar files (except JDK) imported in the application's files.</p>
  
  <p>I want to know, how to run this application without using the jar file present inside the <code>dist/</code> directory.</p>
  
  <p>Also I want to know if I do not have classes files with me then how to compile .java files in <code>src/mailqueue/</code> to generate class files in <code>build/classes/mailqueue/</code> directory.</p>
  
  <p>PS: Please give the exact command to run in terminal and optionally any explanation.</p>