JDBC中缺少dll [英] dll missing in JDBC

查看:151
本文介绍了JDBC中缺少dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Java中的SQL。
最近我有这个错误:

  com.microsoft.sqlserver.jdbc.AuthenticationJNI< clinit> 
警告:无法加载sqljdbc_auth.dll原因:否java.library.path中的sqljdbc_auth

当连接字符串中添加参数 integrateSecurity = true; 时,会发生这种情况。
错误消息清楚地表示sqljdbc_auth.dll丢失,所以我试图将dll放在与我保持sqljdbc4.jar相同的路径。



然而,这不行,所以我想知道我如何实际可以添加这个DLL到我的构建路径?有没有一种特殊的方法呢?

解决方案

好吧,我找到了!
我真的不需要更改java.library.path,但sqljdbc.jar的本地库位置



这是最好的答案我可以找到:
https://stackoverflow.com/a/958074/2000342



现在工作,谢谢支持!


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

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.

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?

解决方案

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

This is the best answer I could find: https://stackoverflow.com/a/958074/2000342

It works now, thanks for the support!

这篇关于JDBC中缺少dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆