facebook

ClassNotFoundException: oracle.jdbc.driver.OracleDriver

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #267575 Reply

    everZ
    Member

    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

    #267616 Reply

    Riyad Kalla
    Member

    I put ojdbc14.jar and jxl.jar in the lib folder

    You actually want these to go into your app servers /lib directory.

    #267619 Reply

    everZ
    Member

    You actually want these to go into your app servers /lib directory.

    Yes.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: ClassNotFoundException: oracle.jdbc.driver.OracleDriver

You must be logged in to post in the forum log in