社区
Java SE
帖子详情
使用JDBC new Driver 出现的问题呢
qq_33608244
2016-07-24 01:54:48
我用的是Myeclipse10
在看别人在创建Driver对象的时候 可以看到Mysql的构造器。但是我创建的时候没有。只有默认的两个
我需要连接的是oralce 我也导入了oralce的JAR包
但是没有相关的构造方法
这个是我的构造方法只有两个
其他人的。有很多个
...全文
200
4
打赏
收藏
使用JDBC new Driver 出现的问题呢
我用的是Myeclipse10 在看别人在创建Driver对象的时候 可以看到Mysql的构造器。但是我创建的时候没有。只有默认的两个 我需要连接的是oralce 我也导入了oralce的JAR包 但是没有相关的构造方法 这个是我的构造方法只有两个 其他人的。有很多个
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
angelvyvyan
2016-07-24
打赏
举报
回复
要有一个mysql-connector的jar包
smht2598
2016-07-24
打赏
举报
回复
看看是不是项目未完成编译,"window " -->'show view' -->"problem"。另外看看项目的.classpath文件,看你导入的jar包在不在文件中。 <classpathentry kind="lib" path="WebContent/WEB-INF/lib/aliyun-openservices-1.0.10.jar"/> <classpathentry kind="lib" path="WebContent/WEB-INF/lib/antlr-2.7.7.jar"/> <classpathentry kind="lib" path="WebContent/WEB-INF/lib/aopalliance-1.0.jar"/> <classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-all-3.1.jar"/> <classpathentry kind="lib" path="WebContent/WEB-INF/lib/bcprov-jdk15on-147.jar"/>
walkuere
2016-07-24
打赏
举报
回复
据我所知,连mysql和连oracle是需要不同的包,这包需要自己下载jar,然后再项目工程的配置环境中引用,然后你的代码前面还要import引入,或者什么usenameSpace什么 mysql好像还要在控制面板里加个odbc 这个网络上肯定有现成的例子,下载下来就可以
dzq584462393
2016-07-24
打赏
举报
回复
试试DriverManager.getConnection()行不行
JDBC
连接数据库
出现
Loading class `com.mysql.
jdbc
.
Driver
'. This is deprecated.
问题
的相关解决方法
使用
JDBC
连接MySQL时,
出现
以下错误(enummm,一个连接
问题
真的卡了好久~~): Loading class com.mysql.
jdbc
.
Driver
'. This is deprecated. The
new
driver
class iscom.mysql.cj.
jdbc
.
Driver
’. The
driver
is ...
`com.mysql.
jdbc
.
Driver
‘. This is deprecated. The
new
driver
class is `com.mysql.cj.
jdbc
.
Driver
‘的解决办法
The
new
driver
class is com.mysql.cj.
jdbc
.
Driver
‘的解决办法 说多了都是泪,搭建这个项目遇到的
问题
太多了,csdn下载的一个javaweb项目 github上也下载了几个,还学会了github上下载东西方法,全是英文的… ...
【
JDBC
】The
new
driver
class is `com.mysql.cj.
jdbc
.
Driver
‘. The
driver
is automatically
Loading class `com.mysql.
jdbc
.
Driver
`. This is deprecated. The
new
driver
class is`com.mysql.cj.
jdbc
.
Driver
`.The
driver
is automatically registered via the SPI and manual loading of the
driver
class ...
解决报错提示:Loading class `com.mysql.
jdbc
.
Driver
‘.The
new
driver
class is ‘com.mysql.cj.
jdbc
.
Driver
‘.
提示信息表明数据库驱动com.mysql.
jdbc
.
Driver
’已经被弃用了、应当
使用
新的驱动com.mysql.cj.
jdbc
.
Driver
’ 三、解决方式 把com.mysql.
jdbc
.
Driver
改为 com.mysql.cj.
jdbc
.
Driver
,如下图: 修改之后重启...
Loading class `com.mysql.
jdbc
.
Driver
'. This is deprecated. The
new
driver
class is `com.mysql.cj.jdb
异常错误:Loading class `com.mysql.
jdbc
.
Driver
'. This is deprecated. The
new
driver
class is `com.mysql.cj.
jdbc
.
Driver
'. The
driver
is automatically registered via the SPI and manual loading of the ...
Java SE
62,635
社区成员
307,269
社区内容
发帖
与我相关
我的任务
Java SE
Java 2 Standard Edition
复制链接
扫一扫
分享
社区描述
Java 2 Standard Edition
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章