I have created Simple java application in netbeans IDE. i have used **mysql-connector-java-5.0.7-bin** to connect java with mysql.it works fine in IDE
 finally i have created **executable jar.**. when i run the jar file from cmd window i got the following error in **cmd** 

```
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

```

can any one help me to solve this one?