When reading manuals / tutorials on setting up JDBC with Tomcat I frequently come across references to the "Tomcat's HOME\lib" directory. E.g.:
Add the driver to your classpath, to your project, or to Tomcat's HOME\lib directory.
Other times, reference is made to the "$CATALINA_HOME/lib" directory. E.g.:
Before you proceed, don't forget to copy the JDBC Driver's jar into $CATALINA_HOME/lib.
I am running Tomcat 7.0.53 and am aware of the following locations:
/usr/share/tomcat7
/var/lib/tomcat7
(where thewebapps/
directory resides)/etc/tomcat7
Of the above location only /usr/share/tomcat7
contains a lib
directory with jars. Is this the "Tomcat's HOME\lib" directory? What is then, the CATALINA_HOME/lib
directory?
Its located user
/usr/share/tomcat7/lib
folder. If you have usedapt-get install tomcat7
command for installing your container.CATALINA_HOME
andTomcat's HOME
is usually the same:CATALINA_HOME/lib
is therefore/usr/share/tomcat7/lib
To be sure, search for
bootstrap.jar
. This file is located in$CATALINA_HOME/bin/
More details here
libs
webapps
and config