• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

oracle.java.OracleDriver not found - class_path problem?

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I've used following Oracle connection on Ora8 and Ora9i and it has always worked for me:
myJavaProgram.java


But when I try to recompile the same code on Oracle 7.3.4 using an the command line class path

javac -verbose -classpath .:/opt/oracle/product/v473/jdbc/lib/classes111.zip:/path/to/other/java/stuff myJavaProgram.java

I get this compile time error message
[code]
myJavaProgram.java:206: class oracle.java.OracleDriver not found in type declaration
DriverManager.registerDriver(new Ooracle.jdbc.OracleDriver());
.............................................^
1 error
[code]

Using the verbose option, I found that javac expanded classes111.zip which included the DriverManager class.
What have I done wrong and how do I make it work?

THANKS !
 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot to add:

We set the LD_CLASS_PATH to /opt/oracle/product/v734/jdbc/lib
 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem solved, thx.
reply
    Bookmark Topic Watch Topic
  • New Topic