Home » Developer & Programmer » JDeveloper, Java & XML » oracle.jdbc.driver.OracleDriver problem
oracle.jdbc.driver.OracleDriver problem [message #91063] Sun, 17 March 2002 21:02 Go to next message
Johnson Jayaraj
Messages: 1
Registered: March 2002
Junior Member
Hi ,
I want to connect to Oracle database running at w2k server.My
apache+tomcat+cocoon runs at linux work station. I have
deployed my servlet with following code for connection.
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
}
catch(Exception e)
{
}

But when i run this, it gives an sql Exception.."No suitable driver."
Though
I have specified classpath for classes12.zip at rc.local
I have specified wrapper.classpath=/root/classes12.zip at
tomcat.properties.

An any one get me a solution for this problem..please..I need this
to be solve d ASAP.
Thanks in advance.

With Regards
Johnson Jayaraj
Re: oracle.jdbc.driver.OracleDriver problem [message #91144 is a reply to message #91063] Mon, 06 May 2002 23:48 Go to previous messageGo to next message
Jeroen Kottier
Messages: 2
Registered: May 2002
Junior Member
Try renaming the classes12.zip to classes12.jar
Re: oracle.jdbc.driver.OracleDriver problem [message #92203 is a reply to message #91144] Fri, 16 April 2004 12:15 Go to previous messageGo to next message
rajib seth
Messages: 1
Registered: April 2004
Junior Member
Dear sir,
I have written a program in java that will connect
oracle through java.But I have now faced some problem.At the run time it is giving a error:
Oracle driver not found.
there is no compilation error.so what i have to do
to solve this problem.
Re: oracle.jdbc.driver.OracleDriver problem [message #92206 is a reply to message #92203] Mon, 19 April 2004 01:00 Go to previous message
Jeroen Kottier
Messages: 2
Registered: May 2002
Junior Member
Make sure you include the Oracle JDBC driver in your classpath.

For example:

java -classpath /path_to_driver/classes12.zip program_name
Previous Topic: How to copy generated XML into CLOB from PLSQL?
Next Topic: A problem with properties files
Goto Forum:
  


Current Time: Fri Nov 22 15:13:14 CST 2024