title: how to build jar file from my project?
body: <p>I wrote a program with <code>java</code> and <code>mysql</code> and now i want to have a jar file that when i click on it the program work(<code>without that mysql install on my system</code>).</p>
  
  <p>I right click on my project an pressed clean and build but it didn't build jar file and below</p>
  
  <p>wrote in output.</p>
  
  <pre><code>Updating property file: C:\Users\mehdi\Documents\NetBeansProjects\project1\build\built-clean.properties
  Deleting directory C:\Users\mehdi\Documents\NetBeansProjects\project1\build
  clean:
  init:
  deps-jar:
  Created dir: C:\Users\mehdi\Documents\NetBeansProjects\project1\build
  Updating property file: C:\Users\mehdi\Documents\NetBeansProjects\project1\build\built-jar.properties
  Created dir: C:\Users\mehdi\Documents\NetBeansProjects\project1\build\classes
  Created dir: C:\Users\mehdi\Documents\NetBeansProjects\project1\build\empty
  Compiling 8 source files to C:\Users\mehdi\Documents\NetBeansProjects\project1\build\classes
  C:\Users\mehdi\Documents\NetBeansProjects\project1\src\project1\NewUser.java:24: package sun.swing.table does not exist
  import sun.swing.table.DefaultTableCellHeaderRenderer;
  
  Note: Some input files use or override a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  1 error
  C:\Users\mehdi\Documents\NetBeansProjects\project1\nbproject\build-impl.xml:595: The following error occurred while executing this line:
  C:\Users\mehdi\Documents\NetBeansProjects\project1\nbproject\build-impl.xml:276: Compile failed; see the compiler error output for details.
  BUILD FAILED (total time: 0 seconds)
  </code></pre>
  
  <p>now i want to know how can i build a jar file from my program that work correct without that mysql  installed.</p>
  
  <pre><code>I use net beans 6.9.1
  
  and jdk-6u23-windows-i586
  </code></pre>