Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot load JDBC driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver

843859Jun 6 2008 — edited Nov 20 2014
Hi,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2008
Added on Jun 6 2008
15 comments
720 views