aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot connect to db2 v8 trial version with jdbc
 
Similar Threads
Driver to connect to the database
Connecting to MSSQL2000
HELP please with SQL Server
Why use Class.forName() to load driver
java.sql.SQLException: No suitable driver