Follow up to this question: https://stackoverflow.com/a/12304934/866785
I am also trying to connect to SQL Server 2008 R2 with Windows Authentication using Java.
I have set the PATH variable to include
C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\auth\x64
But I still get the error:
java.lang.UnsatisfiedLinkError: no sqljdbc_auth in java.library.path
I am using Netbeans IDE, and also tried setting -Djava.library.path="C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\auth\x64" as described in this question but to no avail.