package oracle.jdbc.driver does not exist
hi, Guys,
I had this problem for while, I just can not get it!! I wish I can get some help from you!!! Thanks!
Here is the situation:
I installed j2sdk1.4.0_01 on my windows 2000, and I download all the drivers for JDBC thin to connect to oracle, and also I have my oracle client installed on my computer. I put all the classesX.zip files under "C:\Oracle\Ora81\jdbc\lib" root. And updated the classpath setting under window. Whenever I try to compile the program I wrote, the error message came up"
JDBCVersion.java [11:1] package oracle.jdbc.driver does not exist
(new oracle.jdbc.driver.OracleDriver());
^
1 error
Errors compiling JDBCVersion.
"
Here is my program:
import java.sql.*;
import java.io.*;
public class JdbcApplet extends java.applet.Applet
{
public void init(Connection conn)
{
// Register the driver.
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
// Connect to the database.
conn = DriverManager.getConnection
("jdbc:oracle:thin:@ukyd.uky.edu:1521:ukyd");
}
}
My questions are where did I make the mistake? Do I have to download the package from java.sun.com for oracle?
THanks a lot!!
I appreciate your generous help and time!