wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans error JSP and MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans error JSP and MySQL" Watch "Netbeans error JSP and MySQL" New topic
Author

Netbeans error JSP and MySQL

colm o'donnell
Greenhorn

Joined: Apr 07, 2008
Posts: 17
java. lang. ClassNotFoundException : com.mysql.jdbc.Driver


Hi

This is an error I'm getting when trying to create a website in netbeans. Can someone please help me. I'm using mysql and mysql-connector-java-5.0.8.
Thanks a million,
Colm
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

sound like classpath problem.

in netbeans, You can right-click to the project and set your classpath in the library option of the Project Properties dialog box. there you can add your JAR (mysql jar) files into to your project.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans error JSP and MySQL
 
Similar Threads
Eclipse (Mac): Access restriction: The constructor Driver() is not accessible due to restriction...
Problem in Java Connection with MySQL in Linux Mandriva.
Setting up MySQL on Windows
Netbeans classpath problem
Can't connect to MySQL database with Hibernate