title: Error: in JAR with mysql-connector-java-5.0.7-bin
body: <p>I have created Simple java application in netbeans IDE. i have used <strong>mysql-connector-java-5.0.7-bin</strong> to connect java with mysql.it works fine in IDE
   finally i have created <strong>executable jar.</strong>. when i run the jar file from cmd window i got the following error in <strong>cmd</strong> </p>
  
  <pre><code>db not connected -connectionjava.lang.ClassNotFoundException: com.mysql.jdbc.Dr
  ver
  db not connected -connectionjava.lang.ClassNotFoundException: com.mysql.jdbc.Dr
  ver
  connecting to the database
  Invalid userjava.lang.NullPointerException
  db not closedjava.lang.NullPointerException
  its is from else
  </code></pre>
  
  <p>can any one help me to solve this one?</p>