Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 8th, 2006, 06:00 PM
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
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:14 PM.


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