aspose file tools*
The moose likes JDBC and the fly likes jdbc driver question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc driver question?" Watch "jdbc driver question?" New topic
Author

jdbc driver question?

weiliu lili
Ranch Hand

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

This is my error message:
D:\>javac Test.java
Employee.java:10: 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\classes111.zip;h:\Oracle\Ora81\jdbc\lib\nls_chaset11.zip;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
Hi,
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: http://aspose.com/file-tools
 
subject: jdbc driver question?