aspose file tools*
The moose likes JDBC and the fly likes Jar file for DB2 Connection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Jar file for DB2 Connection?" Watch "Jar file for DB2 Connection?" New topic
Author

Jar file for DB2 Connection?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Hi,

Which driver(jar file) I will need for this configuration:

JDK 1.4
DB2 database
Thin Driver (don't have client on my machine)

Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18881
    
    8

Look in the <DB2InstallationDirectory>/java directory. You will find db2jcc.jar and db2jcc_licence_cu.jar. Those two work for me as a JDBC driver for DB2. I don't know what "thin" refers to in your question.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Paul Clapham:
Look in the <DB2InstallationDirectory>/java directory. You will find db2jcc.jar and db2jcc_licence_cu.jar. Those two work for me as a JDBC driver for DB2. I don't know what "thin" refers to in your question.


As I told, I don't have DB2 client on my machine, so I don't have these jars on my machhine...

And that is why, I am using thin driver...

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18881
    
    8

But you are connecting to a machine that does have DB2? (If you are not, then the question is rather pointless.) It will have those drivers. Copy them to your machine.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Paul Clapham:
But you are connecting to a machine that does have DB2? (If you are not, then the question is rather pointless.) It will have those drivers. Copy them to your machine.


Yes, But I don't have access to that system. I just know IP, port number, database name, username and password. I tried with WSAD's db2jcc.jar file, but it gave me 'unauthorized driver' exception....

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18881
    
    8

Well, if the administrators of that system wanted to allow you to connect to the database, I am sure they would give you a copy of the driver (including the licence file, which is what you don't have). But evidently they don't. I suppose that makes you a cracker or something like that.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Paul Clapham:
Well, if the administrators of that system wanted to allow you to connect to the database, I am sure they would give you a copy of the driver (including the licence file, which is what you don't have). But evidently they don't. I suppose that makes you a cracker or something like that.


Yes Paul.
I am trying for the licensed JAR file.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jar file for DB2 Connection?