We help IT Professionals succeed at work.
Get Started

No Suitable Driver Found

elkhawajah asked
Last Modified: 2012-08-14
Hi Experts ..

I have the following code
// load the DB2 Driver
Class class1 = Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
//Db data = new Db();
// Get the connection with authentication
Connection connection = DriverManager.getConnection(url, user,

// Disable auto-commit mode

return connection;

Open in new window

I am getting this error:
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.ibm.lims.databaseobject.impl.BaseDAO.getConnection(BaseDAO.java:82)
... 20 more

Open in new window

I have db2java.jar in my eclipse project build path.

What else should I do to make it work?
Watch Question
Distinguished Expert 2020
This problem has been solved!
Unlock 2 Answers and 11 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE