I am trying to connect to database using DB2JDBC Type 2 driver. Below is my java code
try
{
String urlPrefix = "jdbc:db2:";
String url = urlPrefix + paramString1;
String user = paramString2;
String password = paramString3;
log.debug(context, 1010, "Connecting to : " + paramString1);
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
localConnection = DriverManager.getConnection(url, user, password);
localConnection.setAutoCommit(false);
I have added db2java.zip to my calss path and db2jdbc.dll is available in C:\Program Files (x86)\IBM\SQLLIB\BIN(Prior to this error I faced db2jdbc.dll not found error)
When I run my code am getting java.sql.SQLException: No suitable driver exception. What am I missing. Should I check the versions of the driver I have downloaded.
