• Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot connect to db2 v8 trial version with jdbc

 
Kelvin Mak
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using DB2 V8.1 trial version, and try to connect with JDBC. My code as following.

It always complain "No suitable driver", I check my reference about the driver string, it is ok. Is it any limit in the db2 trail vesion? Any one meet this situation? Why it cannot use the jdbc driver? thx in advance.
 
Michael Zalewski
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't look like you are registering the driver. Only loading the class. Try
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!