使用瘦驱动程序的jdbc连接 [英] jdbc connection using thin driver

查看:135
本文介绍了使用瘦驱动程序的jdbc连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将oracle 10g xe与Java连接,但出现异常 java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver

i am connecting oracle 10g xe with java but getting the exception java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

即使我已经包含了驱动程序的类路径,即ojdbc14.jar
如果我设置了错误的类路径,请告诉我设置类路径的正确方法

Even if i have included the classpath of driver i.e ojdbc14.jar
if i have set wrong classpath please tell me the correct way to set the classpath

推荐答案

我认为您想使用oracle.jdbc.OracleDriver.我相信不建议使用oracle.jdbc.driver.OracleDriver,并在9i和10g之间将其删除.

I think you want to use oracle.jdbc.OracleDriver. I believe the oracle.jdbc.driver.OracleDriver was deprecated and removed between 9i and 10g.

这篇关于使用瘦驱动程序的jdbc连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆