aspose file tools*
The moose likes JDBC and the fly likes Failure to Locate Database Driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Failure to Locate Database Driver" Watch "Failure to Locate Database Driver" New topic
Author

Failure to Locate Database Driver

Michael Scott
Ranch Hand

Joined: Jan 20, 2003
Posts: 57
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Failure to Locate Database Driver