• Post Reply Bookmark Topic Watch Topic
  • New Topic

oracle.java.OracleDriver not found - class_path problem?  RSS feed

 
achana chan
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!