p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   MySQL (http://p2p.wrox.com/forumdisplay.php?f=99)
-   -   MySql JAR File Problem (http://p2p.wrox.com/showthread.php?t=39555)

dontknowmuch March 8th, 2006 06:00 PM

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.

Don't Know Much

All times are GMT -4. The time now is 12:41 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.