classnotfoundexception.

I am running a simple java code to connect to MSSQL DB. Using IDE its works perfectly well because we have all the required libraries at one place.

Once I put it on TeamSite server under customer_src/src directory and put all my jars in customer_src/lib. It gives me error for these two lines.

[html]
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Connection conn = DriverManager.getConnection(db_connect_string, db_userid, db_password);
[/html]

What should i need to get this working? In digging more into it. I see that the i need to add the sqljdbc.jar in the classpath. I already did that, but found no change with my error.

Can anyone throw some light on getting this working.

Thank You

Comments

Sign In or Register to comment.