• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jdbc driver question?

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic