Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java.lang.classnotfoundexception: com.microsoft.sqlserver.jdbc.sqlserverdriver

You dont need both jTDS and JDBC in your classpath. Any one is required. Here you need 
only sqljdbc.jar.

Also, I would suggest to place sqljdbc.jar at physical location to /WEB-INF/lib 
directory of your project rather than adding it in the Classpath via IDE. 
Then Tomcat takes care the rest. And also try restarting Tomcat.

You can download Jar from : 
www.java2s.com/Code/JarDownload/sqlserverjdbc/sqlserverjdbc.jar.zip
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+6 =