You should look at README.SSO in jtds package. The driver is using native library (in Windos that's .dll) which JVM should be able to know how to find. You can either copy ntlmauth.dll library within your PATH directories or you can explicitly set java.library.path to tell where JVM should search for natives (java - Djava.library.path=<directories with your ddls>). In Netbeans - you can set -Djava.library.path= in Project properties - > Run -> VM Options.
Regards, javor On Nov 29, 12:13 pm, Louis Tiao <[email protected]> wrote: > Hi everyone, > > I am currently trying to establish a connection to SQL Server 2005 > with my jTDS JDBC Driver in NetBeans IDE 6.7.1. I want to do this > through Windows authentication so I left Username and Password field > blank. This now returned the following error: > > Unable to add connection. Cannot establish a connection to > jdbc:jtds:sqlserver://<myserver>:1433/<mydatabase> using > net.sourceforge.jtds.jdbc.Driver (I/O Error: SSO Failed: Native SSPI > library not loaded. Check the java.library.path system property.). > > It seems like I am missing some .dll file in a certain directory but I > can't determine which file and which directory. > > This is getting really annoying. I can't seem to find the right > answers on Google. > > Please help! > > Regards, > Lou -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
