Cannot load JDBC driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver
843859Jun 6 2008 — edited Nov 20 2014Hi,
I am new to this forum.
I am running a simple login application in Eclipse IDE 3.3.2
My database is Ms SQL Server 2005 and I wrote a jdbc connection code to get connection.
following is the code :
try {
Class.forName("com.microsoft.sqlserver.jdbc.SqlServerDriver");
}
catch (ClassNotFoundException e){
System.err.println("ClassNotfound");
System.err.println(e.getMessage());
}
The code is giving me a classnotfound exception.
I have properly placed the msutil.jar,mssql.jar and another jar in the classpath through JavaBuildPath of my project.
But the error is persistent.
Please help me as I am stuck with this for 2 days now.
Thanks,
Vidhya