Java DatabasesDiscussion 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
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?
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.