Java+JDBC环境变量问题,新人小白求助 我确实很小白,接触JAVA7天 JAVA环境变量我配置好了,后来配置JDBC,我的数据库是oracle10gXE 10.2.0.1.0 JDK是1.7.0_03 工具是eclipse3.7.2 代码是 public class ConnectionDemo01 { public static final String DBDRIVER = "oracle.jdbc.driver.OracleDriver"; public static void main(String[] args) { try { Class.forName(DBDRIVER); }catch(ClassNotFoundException e) { e.printStackTrace(); } } } 提示的错误是
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(Unknown Source) 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.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at ConnectionDemo01.main(ConnectionDemo01.java:12)