日期:2014-05-20 浏览次数:20815 次
package com.dbc;
public class CopyOfTest {
public static final String DBDRIVER = "oracle.jdbc.driver.OralceDriver" ;
public static void main(String args[]){
try{
Class.forName(DBDRIVER); // 加载驱动程序
}catch(ClassNotFoundException e){
e.printStackTrace();
}
}
}
java.lang.ClassNotFoundException: oracle.jdbc.driver.OralceDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at log.dbc.CopyOfTest.main(CopyOfTest.java:13)