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: Native SSPI library not loaded. Check the java.library.path system property.
Following are the scenarios where i tried to resolve but still something is missing..
I an confused why this is not working for Sql Server 2008 R2 and Denali.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With