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.