You need to add jar file to build path
right click on project->build path->configure build path->libraries tab ->add external jar
browse it and add it.
after adding also if u not getting same error, then
You must include the jar file in the Deployment Assembly of the Project.
1)select the web project which contains the jsp file
2)select Project tab in the menubar in Eclipse
3)select properties in the drop down menu
4)select Deployment Assembly
5)Add your ojdbc6.jar file in it..
One thought on “java.lang.ClassNotFoundException: com.mysql.jdbc.Driver on eclipse”
Appreciating the persistence you put into your blog and detailed information you provide.
Thanks for one marvelous posting! I enjoyed reading it; you are a great author.
Java training in velachery | Java training in chennai