Reputation: 27
I am a newbie and I wanted to know how build path and all mysql.jar
to Eclipse so that I can use it for JSP and I have already made a dynamic web project configured with Tomcat. Only the database connection is not happening.
The error is:
java.sql.SQLException : No suitable driver found for jdbc:mysql://localhost/pj_company
Upvotes: 1
Views: 3601
Reputation: 5274
You could create a lib
folder your WEB-INF
folder and paste the mysql driver jar in it, and then in eclipse, right click on the jar file --> Build Path --> Add to Build Path
Upvotes: 1