[英]Fix 'No suitable driver found for jdbc' error in Java db connection to sqlserver
I tried to create a connection between java and SQL Server.我试图在 java 和 SQL 服务器之间建立连接。 The driver is working, but 'Driver Class' that I wrote in the code raise this error:驱动程序正在工作,但我在代码中编写的“驱动程序类”会引发此错误:
'No suitable driver found for jdbc:sqlserver://DESKTOP-04\SQL:1433;databaseName=Onschedule' '没有找到适合 jdbc:sqlserver://DESKTOP-04\SQL:1433;databaseName=Onschedule 的驱动程序'
Your embedded database does not have access to a .jar
.您的嵌入式数据库无权访问.jar
。 You need to make sure that the Drivers
node has access to the JavaDB
.jar
file.您需要确保Drivers
节点有权访问JavaDB
.jar
文件。 This file is typically located in the bin/
folder in the directory that JavaDB
was installed on your machine.该文件通常位于您机器上安装JavaDB
的目录中的bin/
文件夹中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.