This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Failure to Locate Database Driver