Jagjeet Singh
Jagjeet Singh

Reputation: 27

Connection to MySQL with JSP using Eclipse

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

Answers (1)

fujy
fujy

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

Related Questions