Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes cannot connect to db2 v8 trial version with jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "cannot connect to db2 v8 trial version with jdbc" Watch "cannot connect to db2 v8 trial version with jdbc" New topic
Author

cannot connect to db2 v8 trial version with jdbc

Kelvin Mak
Ranch Hand

Joined: Oct 04, 2002
Posts: 51
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.


SCJP1.4
Michael Zalewski
Ranch Hand

Joined: Apr 23, 2002
Posts: 168
Doesn't look like you are registering the driver. Only loading the class. Try
 
Don't get me started about those stupid light bulbs.
 
subject: cannot connect to db2 v8 trial version with jdbc
 
Similar Threads
Driver to connect to the database
HELP please with SQL Server
Connecting to MSSQL2000
Why use Class.forName() to load driver
java.sql.SQLException: No suitable driver