File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar file for DB2 Connection?

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic