UnsatisfiedLinkError: no sqljdbc_auth in java.library.path

一曲冷凌霜 提交于 2021-01-29 17:35:48

问题


I'm using Maven to install Spring Boot project that uses SQLServer, but Tests phase fails: 'SQLServerException: This driver is not configured for integrated authentication', caused by 'UnsatisfiedLinkError: no sqljdbc_auth in java.library.path'. It happens only while using Maven, not while compiling the project in eclipse. I use maven-surefire-plugin.

I copied sqljdbc_auth windows\sysWOW64 and to Java\jre1.8.0_211\bin and some more libraries, but it doesn't seems to be the solution.


回答1:


Seems you are not using type-4 JDBC for SQLServer which require platform dependent library loading. I suggest you switch to type-4 SQLSERVER driver so that you only need depends on driver jar. Should be good solution.



来源:https://stackoverflow.com/questions/56953643/unsatisfiedlinkerror-no-sqljdbc-auth-in-java-library-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!