MySql JAR File Problem
Hi please help,
I use the Text Pad developed an application and is executing nicely, so I created a JAR file for it. However I am encountered a MySql database connection problem (which DOES NOT EXIST without the JAR file type execution). It fails on this statement:
Class.forName("com.mysql.jdbc.Driver").newInstance ();
This is the same statement executing OK when it is NOT in JAR file!. The same computer (XP Pro), and the same database and everything is the same. Except ERROR EXCEPTION on the illegal name "com.mysql.jdbc.Driver".
In summary nothing is changed except a JAR file was created and this JAR file is being executed.
Thanks in advance for your help.
Best,
Don't Know Much
|