Wrox Programmer Forums
|
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases 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 April 10th, 2007, 03:15 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with JDBC

Hi,

I have problem with JDBC.

I am using netBeans 5.5 along with MySQL 5.0 And connector/J Driver for the same.
I have installed it properly.Even though I am getting database connection in runtime window the program doesn't work.
But when I run the program I get 'com.mysql.jdbc.Driver' ClassNotFoundException .What shoud I do to get it corrected?

Can anybody hep me?


 
Old April 16th, 2007, 11:51 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Try adding the mySQL driver jar file to your class path or try bundeling it with your jar file.
If your application is a web application then try adding this driver jar file in the WEB-INF/lib directory.

Regards,
Rakesh
 
Old June 20th, 2007, 02:06 AM
Authorized User
 
Join Date: May 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

be sure ur classpath is set to mssql driver

http://studyjava.org/forums/





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with JDBC realm aadz5 Apache Tomcat 1 September 2nd, 2009 06:32 PM
problem with jdbc protozoa JSP Basics 3 December 30th, 2006 06:08 AM
Connection Problem with Java JDBC dontknowmuch SQL Server 2005 3 April 4th, 2006 01:51 PM
Cannot load JDBC driver class with com.mysql.jdbc. dzis Apache Tomcat 0 January 29th, 2004 11:57 AM
Cannot load JDBC driver class with com.mysql.jdbc. dzis MySQL 0 January 29th, 2004 11:31 AM





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