wood burning stoves*
The moose likes Java in General and the fly likes when i execute a jar file I get OracleDriver error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "when i execute a jar file I get OracleDriver error" Watch "when i execute a jar file I get OracleDriver error" New topic
Author

when i execute a jar file I get OracleDriver error

ros casalini
Greenhorn

Joined: Oct 15, 2001
Posts: 1
Hi,
I wrote a program and I can execute it fine from the commandline by java -classpath c:\ora\classes111.zip;. className
I put all the classfiles into a jar and in the jar and I made sure the mf file had the mainClass stated in it correctly.
When I go to execute it I get the error :
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver.
The way I am trying to execute it is by typing :
java -jar -classpath .;c:\ora\classes111.zip; amcjar.jar
If you have any suggestions please let me know. It would be greatly appreciated.
Thank you,
Rosalinde
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: when i execute a jar file I get OracleDriver error
 
Similar Threads
how to connect jdbc with oracle 8i?
Visual Age 3.5 and Oracle
Database can connect in Service Netbeans screen but not using code
problems with tomcat-4.0 and Oracle
Oracle ODBC Driver Problems. Please help