简体   繁体   中英

UnsatisfiedLinkError: no sqljdbc_auth in java.library.path

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM