tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Jackson" <mjack...@cdi-hq.com>
Subject RE: Oracle classes not found
Date Thu, 15 Aug 2002 16:00:46 GMT
That application doesn't run through tomcat so you'll need to specify the
location of the oracle
jar (or zip) file in your classpath when you try to compile or run the
application.

--mikej
-=-----
mike jackson
mjackson@cdi-hq.com

> -----Original Message-----
> From: Kenny G. Dubuisson, Jr. [mailto:kdubuisson@kcmria.com]
> Sent: Thursday, August 15, 2002 8:58 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Oracle classes not found
>
>
> I now have Apache/Tomcat/JSDK up and running and I've copied Oracle's
> "classes12.zip" into Tomcat's "common/lib" directory.  I'm
> performing a test
> from an Oracle book and the compiler/code can't find the Oracle classes.
> The code I'm running (saved in a file named "TestJdbc.java") is:
>
> package jdbc.driverTest;
> import java.sql.*;
> public class TestJdbc
> {
>    public TestJdbc ()
>    {
>       try
>       {
>          DriverManager.registerDriver (new
> oracle.jdbc.driver.OracleDriver());
>       }
>       catch (Exception e) {}
>    }
> }
>
> My compile statement is (from the Windows NT command prompt):
> "javac jdbc\driverTest\TestJdbc.java"
>
> The error I get is:
> jdbc\driverTest\TestJdbc.java:11: cannot resolve symbol
> symbol : class OracleDriver
> location: package driver
>     DriverManager.registerDriver (new.oracle.jdbc.driver.OracleDriver());
> 1 error
> ^
>
> Any ideas?  Thanks,
> Kenny
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message