java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver Exception comes when we try to connect Oracle
database from java program and Oracle driver is not
available in classpath.
Class.forName("oracle.jdbc.driver.OracleDriver") method loads a class at runtime using
Reflection which throws ClassNotFoundException if the class "oracle.jdbc.driver.OracleDriver"
is not found.
To resolve this issue,
we need to include the ojdbc.jar JAR in application
classpath. For Oracle 10g and 11g, these are present in ojdbc6.jar or
ojdbc6_g.jar.
No comments:
Post a Comment