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 DB2 connection 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
Reply locked New topic
Author

DB2 connection

Hrvoje Canzek
Greenhorn

Joined: Sep 18, 2002
Posts: 16
i use the following code in my application:
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
con = DriverManager.getConnection("jdbc b2 bName","user","passwd");
my classpath :
set classpath=.;c:\SQLLIB\java\db2java.zip;
c:\SQLLIB\lib;c:\SQLLIB\java\runtime.zip;
c:\SQLLIB\java\sqlj.zip
Please help me i do not know what to do
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I think this is supposed to be a part of the thread here, so I've copied it across and I am going to close this thread.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB2 connection