Hi cedric,
You have to include into the CLASSPATH the directory where you
installed Oracle jdbc drivers. For ex. if you installed the Oracle jdbc
drivers into C:\JDBC dir.
update your classpath as follows:
set classpath=C:\JDBC\classes111.zip;c:\jdbc;%classpath%
set path=c:\jdbc;%path%
Hope this will fix your problem.
--
MG
> -----Original Message-----
> From: Cedric Caillet [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 01, 1999 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: Can't load oracle.jdbc.driver.OracleDriver !
>
> I can't load the "oracle.jdbc.driver.OracleDriver" class
> from my servlet.
> I use JRUN 2.3.
> I included my classes.zip where are every class from oracle in my
> CLASSPATH
> system.
> But I can't load this class.
> I have one "ClassNotFoundException oracle.jdbc.driver.OracleDriver"
> Exception.
> Here is my code :
> //************************************************
> public void Connecting(){
>
> try {
> // Load the Oracle JDBC driver
> Class.forName ("oracle.jdbc.driver.OracleDriver");
> // Connect to the database
> // You can put a database name after the @ sign in the connection
> URL.
> Connection conn =
> DriverManager.getConnection ("jdbc:oracle:oci8:@tacos",
> "logindba",
> "ld4twt1");
>
> // Create a Statement
> Statement stmt = conn.createStatement ();
>
> // Select the ENAME column from the EMP table
> ResultSet rset = stmt.executeQuery ("select * from profile");
>
> // Iterate through the result and print the employee names
> while (rset.next ()) out.println (rset.getString (1));
> }catch(java.sql.SQLException e){
> out.println("Probleme SQL:"+e.getMessage());
> }catch (java.lang.ClassNotFoundException e){
> out.println("ClassNotFoundException:"+e.getMessage());
> }//end try
>
> }//end function
> }
> //*******************************************************
> An Idea for my problem.
> Thanks for your help.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html