即使在 VM 选项中指定路径后也无法加载 sqljdbc_auth.dll
Failed to load the sqljdbc_auth.dll even after specifying the path in VM options
当我尝试将我的 Java 代码连接到 SQL 服务器数据库时出现以下错误。
com.microsoft.sqlserver.jdbc.AuthenticationJNI WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path This driver is not configured for integrated authentication. ClientConnectionId:db8a3aa3-d84b-49d2-a7eb-64c4187a8309
我使用 maven 添加 SQL 服务器依赖项。
有帮助吗?
尝试下载 sqljdbc 6.0,解压缩并修改您的 classpath
以包含 sqljdbc_auth.dll
应该可以。
当我尝试将我的 Java 代码连接到 SQL 服务器数据库时出现以下错误。
com.microsoft.sqlserver.jdbc.AuthenticationJNI WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path This driver is not configured for integrated authentication. ClientConnectionId:db8a3aa3-d84b-49d2-a7eb-64c4187a8309
我使用 maven 添加 SQL 服务器依赖项。 有帮助吗?
尝试下载 sqljdbc 6.0,解压缩并修改您的 classpath
以包含 sqljdbc_auth.dll
应该可以。