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.