简体   繁体   中英

java-oracle9i /10g connectivity

我长期尝试使用Java和oracle 9i连接,我尝试了不同的方式,使程序在执行时得到了很好的编译,它向我显示了一条错误消息,提示我“没有classdeffounderror” wat shud吗?请为我提供解决方案(我试图以各种方式设置类路径...)我需要它尽快。谢谢..

You need to put the Oracle driver jar onto your classpath.

If you are using an older JDBC driver then you may wish to download a newer one from here

http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html

They're generally backwards compatible.

Also check that your driver class has been loaded and is correct.

Class.forName("oracle.jdbc.driver.OracleDriver");

See for a code example http://w2.syronex.com/jmr/edu/db/oracle-and-java

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM