A method to solve java.lang.ClassNotFoundException:orcale.jdbc.driver.OracleDrive error ____oracle

Source: Internet
Author: User
platform Environment: myeclipse10,jdk1.7,tomcat-7.0.50,oracle11g

Oracle drives use Ojdbc6_g.jar java.lang.ClassNotFoundException:orcale.jdbc.driver.OracleDrive, driver error

But sometimes the driver is correct, start tomcat but the error prompts, and finally can be started, the system runs normally.

The workaround is to remove the existing Tomcat and reinstall Tomcat.

Cause Analysis: The Java compiler version has been changed several times, and some project-related files may not be automatically updated in Tomcat. Therefore, it is recommended that you try to reinstall Tomcat or delete all project-related files when solving similar problems.

 

Other ways to resolve this problem online:

1. Not imported driver, need to join Oracle jar driver in libraries of build path

2. The loaded driver version does not match the JDK version, and the jar version needs to be adjusted.

3.jar path is not correct and should be added through build path-> Configure build Path

4. Define driver spelling errors, such as: String Driver = "Orcale.jdbc.driver.OracleDriver";

 

See if the driver can be found:

Press Ctrl+shift+t in the Eclipse/myeclipse and enter Oracle.jdbc.driver.OracleDriver.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.