View Single Post
  #1 (permalink)  
Old March 8th, 2006, 06:00 PM
dontknowmuch dontknowmuch is offline
Authorized User
 
Join Date: Mar 2005
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

Reply With Quote