No suitable driver found for jdbc:jtds:sqlserver://localhost:1433/db
Joined: Jun 06, 2012
hi friends. i know its a very common error and so many solutions are available on the web.
I tried most of them but not able to resolve this error.
here is the error i got ----- No suitable driver found for jdbc:jtds:sqlserver://localhost:1433/db
Let me tell you that i am using Windows 7 64 bit os, so jdbc-odbc doesnt helped me, thats why i am using JTDS Driver.
I have set the classpath as
variable name: classpath
variable value: C:\Tomcat 7.0\lib\servlet-api.jar;C:\Tomcat 7.0\lib\catalina.jar;C:\Tomcat 7.0\webapps\bugtrack\WEB-INF\lib;C:\Program Files\jtds\jtds-1.2.5.jar;
I am using SQL server 2008 R2 as the database.
And here is the code that i am using----