Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failure to Locate Database Driver

 
Michael Scott
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Java program that fails when trying to connect to a DB2 database. The error message is as follows:
com.ibm.ivj.eab.dab.DAException:
NO_SUITABLE_DRIVER Unable to load
DAMessages
ResourceBundle.COM.ibm.db2.jdbc.app.DB2Driver
I imported the package 'COM.ibm.db2.jdbc.app' into my IDE (VisualAge) along with all other DB2 packages. (These packages are in the db2java.zip file in the 'Program Files\SQLLIB\Java' directory on my pc.)
In VisualAge, I've verified that the Properties of the class that should access DB2 is set to reference the DB2 packages.

I'd appreciate any ideas on why this error occurred. Thanks very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic