Hi all,
Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
This might be an old and common error, but my case is a little bit different.
I used MyEclipse as IDE with Eclipse 3.1.2, and MyEclipse 4.1.1
I put ojdbc14.jar and jxl.jar in the lib folder. They were added into the build path in the following way: Project–>Property–>Java Build Path, click Libraries tab and then Add JARS button. If I run the application in MyEclipse, it works perfectly.
But if I want to export the application into a jar file, I got the above error.
Here is how I build the jar file.
Export –> JAR file –> (enter Jar file) –> Use existing manifest from workspace –> Finish.
The jar file is built successfully.
In the manifest file, I have
Class-Path: lib/jxl.jar lib/ojdbc14.jar
When I run it, it generates the above error.
Any thoughts? Thank you very much.
Everett