Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
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:29 AM
Registered User
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default class Not found exception

I have been trying to use MySQL 5.0 for my application. I am using netBeans 5.5 . Also I am using Connector/J Driver 5.0.5 .I have included driver in the classpath.The driver has been loaded and connection has been made.I am trying to interact using GUI.
But whenever I try to run the application I get 'com.mysql.jdbc.Driver' ClassNotFoundException error.
What shoud I do to fix this problem?

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


Try to add the MySQL driver jar file in to the lib directory of your application jar file, it'll work.

Old June 7th, 2007, 03:26 AM
Authorized User
Join Date: May 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts

Be sure ur classpath is correct,

or put the driver in ur lib directory


Similar Threads
Thread Thread Starter Forum Replies Last Post
Class DB Not Found darkestangel1980 PHP Databases 0 July 2nd, 2007 05:27 AM
Getting Invalid Class Exception in tomcat rnilay81 J2EE 1 February 21st, 2007 06:30 AM
HTTPListener Exception and 404 Not Found error JanK .NET Web Services 0 June 2nd, 2006 03:56 AM
Client Class not found. sujansays EJB 2 May 19th, 2006 03:51 PM
Exception:Page Not found arnabghosh C# 4 December 3rd, 2005 11:43 AM

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