aspose file tools*
The moose likes JDBC and the fly likes ClassNotFoundException: com.mysql.jdbc.Driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ClassNotFoundException: com.mysql.jdbc.Driver" Watch "ClassNotFoundException: com.mysql.jdbc.Driver" New topic
Author

ClassNotFoundException: com.mysql.jdbc.Driver

Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 149

First of all am very new to all this and I did try searching for the solution on the net but couldn't find anything. What am trying to do it to fetch data from the mysql database and its throwing ClassNotFoundException: com.mysql.jdbc.Driver exception. Please help what can I do? Here's my code

1. The HTML Page


1. The Servlet




Please tell me where am going wrong???
Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 149

I've heard that the class path needs to be set up so how would I do that? I'm using net beans??
Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 149

Am sorry for this thread as I forgot to add mysql connector jar file to the project. I've done that and now its working fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNotFoundException: com.mysql.jdbc.Driver
 
Similar Threads
I cannot obtain the enitre path of image
How to insert arabic letters in MySql through jsp
error to login page
Show menu and submenu on homepage from database using servlet and jsp