I want to connect Oracle Database use JDBC2,but...

I get this error :

Error in connecting Database java.lang.classNotFoundException:Oracel.jdbc.driver.Oracledriver.

My code only one sentence:

Class.forName("oracle.jdbc.driver.OracleDriver");

My classpath like this :

set classpath=c:\jdk\lib\classes12.zip

Platform:Windows 2000,JDK 1.3.0

Why?How do I do?

[359 byte] By [China_yukuang] at [2007-9-26 4:01:31]
# 1
you test thisDriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
knightwei at 2007-6-29 12:57:22 > top of Java-index,Archived Forums,Java Programming...
# 2

You have to catch the errors, totherwise it gives you compiling errors.

include this in your program for Class.forName:

catch(ClassNotFoundException E)

{

System.out.println("Error:"+E.getMessage());

}

include this for DriverManager.getConnection

catch(SQLException E)

{

System.out.println("Error:"+E.getMessage());

}

SSlee at 2007-6-29 12:57:22 > top of Java-index,Archived Forums,Java Programming...