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

Driver Missing

 
Michael Scott
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm seeing the following message when running a Java application:
NO_SUITABLE_DRIVER Unable to load DAMessages
ResourceBundle.COM.ibm.db2.jdbc.app.DB2Driver
Isn't the error message saying that I'm missing a class called COM.ibm.db2.jdbc.app.DB2Driver in the package ResourceBundle?
Thanks.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure that's not what the error message means. If a class could not be found, you'd get a ClassNotFoundException.
I would guess that the line of code causing the problem is trying to get a Connection from a DriverManager, but a suitable JDBC driver hasn't been loaded yet.
I doubt that helps much. It might help others to help you if you were to post a bit more of the text from the error message you're receiving, as well as any code you feel may well be relevant.
Good Luck
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Packagename is:
ResourceBundle.COM.ibm.db2.jdbc.app
The classname seems to be:
DB2Driver
But this driver is:
Unable to load DAMessages
Because it is a:
NO_SUITABLE_DRIVER

There are lot's of NO_SUITABLE_DRIVER (for instance: wrong version, oracle-driver for postgresql-database, no driver at all...)
I don't know DAMessages - perhaps someone else might help you there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic