Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

package oracle.jdbc.driver does not exist

367616Nov 8 2002
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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2002
Added on Nov 8 2002
4 comments
2,079 views