• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

oracle.java.OracleDriver not found - class_path problem?

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Problem solved, thx.
 
crispy bacon. crispy tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic