File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes jdbc driver question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jdbc driver question?" Watch "jdbc driver question?" New topic

jdbc driver question?

weiliu lili
Ranch Hand

Joined: Apr 11, 2002
Posts: 46
i use win2k &oracle enterprise edition.
This is my script:

This is my error message:
D:\>javac package oracle.jdbc.driver does not exist
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
This is my path,which is set via control panel->system->system enviorment variable:
h:\Oracle\Ora81\jdbc\lib\;h:\Oracle\Ora81\jdbc\lib\;h:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;%SYSTEMROOT%;%SYSTEMROOT%\system32;%SYSTEMROOT%\system32\WBEM;C:\j2sdk1.4.0\bin;
what is wrong with it?

[ April 22, 2002: Message edited by: weiliu lili ]
[ Edited by Dave to format code and fix ]
[ April 22, 2002: Message edited by: David O'Meara ]
tormod eriksen
Ranch Hand

Joined: Jan 23, 2002
Posts: 52
by saying path, do you mean classpath?
I don't know the correct Oracle path to set, but the way to set up the classpath, is to set it to the directory containing the oracle catalog (oracle/jdbc/driver/OracleDriver.class) or the packagefile containg the above filestructure.
Hope it helps
I agree. Here's the link:
subject: jdbc driver question?
It's not a secret anymore!