java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    atjava.net.URLClassLoader$1.run(URLClassLoader.java:200)

    atjava.security.AccessController.doPrivileged(Native Method)

    atjava.net.URLClassLoader.findClass(URLClassLoader.java:188)

    atjava.lang.ClassLoader.loadClass(ClassLoader.java:307)

    atsun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

    atjava.lang.ClassLoader.loadClass(ClassLoader.java:252)

    atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

    atjava.lang.Class.forName0(Native Method)

    atjava.lang.Class.forName(Class.java:169)

     .............................................

java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRES...................................


Exception in thread"main" .DataAccessException: SQLException[Sql Exception,,java.sql.SQLException: No suitable driver found forjdbc:oracle:thin:@(DESCRIPTIO

    ... ...

Caused by: java.sql.SQLException: No suitable driver found forjdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)

    ...2 more

 mark一下,缺少Oracle驱动所致,加上驱动包即可。

你可能感兴趣的:(oracle)