cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC - java.lang.NoClassDefFoundError

Former Member
0 Kudos

Hi Experts,

I am getting the exception java.lang.NoClassDefFoundError when i use the following code to connect to my MSSQL Database. The driver is added the classpath but still the problem persists.


Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");

Regards

Abdullah

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to add the 3 SQL server jars to the lib folder of the server.

Thanks

ritu

former_member402443
Contributor
0 Kudos

Hi,

For my project I use this driver: com.microsoft.jdbc.sqlserver.SQLServerDriver

Also, you need to add the following jars to the 'lib' folder of your project

msbase.jar

mssqlserver.jar

msutil.jar

Manoj Kumar

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi,

For Application Server after 6.13

I use this driver: com.microsoft.jdbc.sqlserver.SQLServerDriver

Also, you need to add the following jars to the 'lib' folder of your project

msbase.jar

mssqlserver.jar

msutil.jar

Omri