• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Jar file for DB2 Connection?

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28293
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28293
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28293
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic