JTDS driver not working for Sql Server 2008R2 and Denali Native SSPI library not loaded. Check the java.library.path system property

前端 未结 3 1759
心在旅途
心在旅途 2020-12-17 22:40

I am trying to connect Sql Server Data Base using windows authentication from my application using JTDS driver but i got following error

SSO Failed: N

相关标签:
3条回答
  • 2020-12-17 23:15

    Apart from putting it into your JRE directly, you can also just specify the java.library.path as such:

    -Djava.library.path=C:\jtds-1.3.1-dist\x64\SSO
    

    The above directory would then contain the ntlmauth.dll file

    0 讨论(0)
  • 2020-12-17 23:20

    Try by placing the ntlmauth.dll file in the bin folder of your Java Runtime Environment (e.g. C:\Program Files\Java\jre7\bin).

    Be sure to match the "bitness" (32 bit or 64 bit) of the DLL with the JVM bitness.

    I ran into the same issue using SQL Server Express 2008 R2 and this MSDN SQL Server Forum Article recommended this resolution, which worked for me.

    0 讨论(0)
  • 2020-12-17 23:20

    In addition to DeChrist's response, I had to add the same dll file in the bin folder of C:\Program Files\Java\jdk1.8.0_91\jre\bin also. In that case, it worked for me.

    0 讨论(0)
提交回复
热议问题