muf*_*fin 20 java sql authentication dll jdbc
我目前正在使用Java中的SQL.最近我收到了这个错误:
com.microsoft.sqlserver.jdbc.AuthenticationJNI <clinit>
WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
Run Code Online (Sandbox Code Playgroud)
当我integratedSecurity=true;在连接String中添加参数时会发生这种情况.错误消息清楚地表明缺少sqljdbc_auth.dll,所以我尝试将dll放在与保留sqljdbc4.jar相同的路径中.
但是,这不起作用,所以我想知道我实际上如何将这个dll添加到我的构建路径中?有没有特殊的方法呢?
muf*_*fin 10
好吧,伙计们,我发现了!我真的不需要更改java.library.path而是更改sqljdbc.jar的"本机库位置"
这是我能找到的最佳答案:https: //stackoverflow.com/a/958074/2000342
它现在有效,感谢您的支持!
小智 5
为了轻松解决,请按照以下步骤操作:
重新启动eclipse或netbeans