The following line (line 63) is an absolute no-no when debugging
catch(Exception e1){}
if any problem of any kind happens in the preceding 22 lines you have just told Java to carry on as if nothing happened, and don't tell you anything.
Replace it with
catch(Exception e1){ e1.printStackTrace();}
and you'll probably get an error message that tells you exactly what went wrong.
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
Google java.lang.ClassNotFoundException: com.mysql.jdbc.Driver and you'll get lots of relevant answers
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073