Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2006, 06:00 PM
Authorized User
 
Join Date: Mar 2005
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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading xml file which is in a JAR file pradheepayyanar J2EE 2 December 26th, 2007 05:52 AM
cant use jar file SweeT EviL Java Basics 1 October 9th, 2007 11:48 AM
JAR file sugarpalm157 Pro Java 1 August 23rd, 2007 08:27 AM
Accessing properties file outside jar file anand_indya J2EE 0 December 8th, 2004 06:34 AM





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