dll的失踪JDBC [英] dll missing in JDBC
问题描述
我目前在Java SQL工作。
最近我得到这个错误:
I am currently working with SQL in Java. Recently I got this error:
com.microsoft.sqlserver.jdbc.AuthenticationJNI <clinit>
WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
这发生在我添加参数 integratedSecurity =真;在连接字符串
。
该错误消息明确表示,sqljdbc_auth.dll丢失,所以我试图把该dll在相同的路径我一直sqljdbc4.jar。
This happens when I add the parameter integratedSecurity=true;
in the connection String.
The error message clearly says that sqljdbc_auth.dll is missing, so I tried to put the dll in the same path as I keep sqljdbc4.jar.
不过,这是不行的,所以我想知道我其实可以这个DLL添加到我的构建路径?有没有一种特殊的方式来做到这一点?
However, this doesn't work, so I wanted to know how I actually can add this dll to my build path? Is there a special way to do it?
推荐答案
好吧家伙,我发现它了!
我真的没有需要改变的java.library.path但sqljdbc.jar的本机库位置
Alright guys, I found it out! I didn't really need to change the java.library.path but the "Native library location" of sqljdbc.jar
这是最好的答案我可以找到:
http://stackoverflow.com/a/958074/2000342
This is the best answer I could find: http://stackoverflow.com/a/958074/2000342
现在的工作,感谢您的支持!
It works now, thanks for the support!
这篇关于dll的失踪JDBC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!