Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
Recently, I am studying Java connection to sqlserver2008. But I always report an error: failed to load the sqljdbc_ auth.dll cause : no sqljdbc_ auth in java.library.path。
Environment: Windows 7 + Tomcat + JDK1.8 + Maven.
after a search, it is found that the domestic Baidu result is to add sqljdbc to java.library.path_ Auth.dll file. Or put it under system 32
Microsoft note 1: https://msdn.microsoft.com/zh-cn/library/gg558122.aspx )
Microsoft note 2: https://msdn.microsoft.com/zh-cn/library/ms378428.aspx# China (Simplified Chinese))
according to the above explanation, I used the following connection string and it passed
jdbc:sqlserver ://192.168.1.10:1433; DatabaseName=master; authenticationScheme=JavaKerberos;
Thoughts:
The people of our country don’t really understand. There are just a few words of copy and paste everywhere. It leads to a very poor understanding of the problem. It seems that English needs special attention in the future
Similar Posts:
- Sudo starts Tomcat and reports an error. There is no Java environment
- Jenkins – mvn: command not found
- The CATALINA_HOME environment variable is not defined correctly
- Tomcat failed to start: Server Tomcat v8.5 Server at localhost failed to start
- [Solved] NB: JAVA_HOME should point to a JDK not a JRE
- JAVA_HOME is not defined correctly [How to Solve]
- How does IntelliJ idea use Maven Tomcat plug to run web projects
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)
- [Solved] Go get Error: “The command you provide is v/v0.9.74.mod, it is not well formed.”
- Eclipse:Failed to load the JNI shared library