java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:ORCL
2017-12-25 22:09
886 查看
问题描述:
在使用Hibernate连接Oracle数据库时,所有配置都检查了好几遍,但还是一直报这个错误
Caused by: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:ORCL
项目环境:
数据库:Oracle11G
JDK: 1.7
解决方案:
这是因为Orcale的驱动与jdk版本之间不支持的问题
oracle7支持jdk1.7
oracle6针对1.6
oracle14只支持1.5,这样子的。
只需要把build path中使用的oracle驱动更换掉就可以了
在使用Hibernate连接Oracle数据库时,所有配置都检查了好几遍,但还是一直报这个错误
Caused by: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:ORCL
项目环境:
数据库:Oracle11G
JDK: 1.7
解决方案:
这是因为Orcale的驱动与jdk版本之间不支持的问题
oracle7支持jdk1.7
oracle6针对1.6
oracle14只支持1.5,这样子的。
只需要把build path中使用的oracle驱动更换掉就可以了
相关文章推荐
- 调试经验-java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:orcl
- jsp连接oracle数据库时报错: No suitable driver found for jdbc:oracle:thin:@localhost:1521:orcl,解决方法
- 关于解决No suitable driver found for jdbc:oracle:thin:@//localhost:1521/orcl的问题
- android studio下解决 java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/
- java.sql.SQLException: No suitable driver found for jdbc:mysql:/localhost/XXX?还是没有解决
- java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306
- mondrian java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/foodmart
- SQLException: No suitable driver found for jdbc:oracle:thin:@gem:1521:XE
- java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/airline
- java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/
- java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver://localhost:1433;
- Spark on Yarn:java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver://localhost\\db_instance_name:1433;databaseName=db_name
- java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost:1433;databaseName
- java.sql.SQLException:No suitable driver found for http://localhost:3306/school
- java.sql.SQLException:No suitable driver found for http://localhost:3306/school
- 项目启动报错:No suitable driver found for jdbc:oracle:thin:@192.168.7.146:1521:oracle
- neo4j Caused by:java.sql.SQLException:No suitable driver found for jdbc:neo4j:http:/127.0.0.1:7474/
- java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/
- java.sql.SQLException: No suitable driver found for jdbc:mysql
- neo4j Caused by:java.sql.SQLException:No suitable driver found for jdbc:neo4j:http:/127.0.0.1:7474/