Reputation: 303
I created a simple web application in eclipse which connect to sql server. I downloaded the sql driver and added it to build path like this:
Build Path->Configure Build Path->Add External JARs.
When I run my application on Tomcat I get exception: ClassNotFoundException.
I think that I know what it reason is (the folder WEB-INF->lib of my application is empty)
. When I put jar file of driver in WEB-INF->lib
- everything is good. How I can add jar file(sql driver) to folder WEB-INF->lib
of my application using eclipse?
Upvotes: 0
Views: 220
Reputation: 402
Putting the JDBC driver JAR in [Tomcat-install-root]/lib will solve your problem, and you can do that outside of Eclipse.
Upvotes: 1