You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kanika Rianarchriya <an...@hotmail.com> on 2000/10/04 20:07:29 UTC

How to setup classpath for JDBC driver

I have written a JSP file which connect to Database using JDBC. The problem is the server can't find the driver. I have tested the code before in term of java application with JDK1.1.8 and it worked well. So I rewrote using JSP syntax and use tomcat to run, the error code is cannnot find the driver I specified in the program. I'd like to know how to setup the classpath for JDBC driver.

Thanks,
Kanika

Re: How to setup classpath for JDBC driver

Posted by Steve Weiland <sw...@viatraining.com>.
Add the jar file to ${TOMCAT_HOME}/bin/tomcat.[sh || bat]
Restart tomcat.




Kanika Rianarchriya wrote:

> I have written a JSP file which connect to Database using JDBC. The
> problem is the server can't find the driver. I have tested the code
> before in term of java application with JDK1.1.8 and it worked well.
> So I rewrote using JSP syntax and use tomcat to run, the error code is
> cannnot find the driver I specified in the program. I'd like to know
> how to setup the classpath for JDBC driver. Thanks,Kanika