【发布时间】:2013-06-21 01:11:53
【问题描述】:
我目前正在使用 Java 中的 SQL。 最近我收到了这个错误:
com.microsoft.sqlserver.jdbc.AuthenticationJNI <clinit>
WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
当我在连接字符串中添加参数integratedSecurity=true; 时会发生这种情况。
错误信息清楚地表明缺少 sqljdbc_auth.dll,因此我尝试将 dll 放在与保留 sqljdbc4.jar 相同的路径中。
但是,这不起作用,所以我想知道如何将这个 dll 添加到我的构建路径中?有什么特别的方法吗?
【问题讨论】:
-
afaik 你需要将 dll 的路径添加到 Windows 属性 PATH 中
标签: java sql authentication dll jdbc