Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6169303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:50:09+00:00 2026-05-23T22:50:09+00:00

I am having this annoying problem of loading DB2 driver from a JAVA application

  • 0

I am having this annoying problem of loading DB2 driver from a JAVA application on AIX5.3, what I got is this :

java.sql.SQLException: java.lang.UnsatisfiedLinkError: db2jdbc (A file or directory in the path name does not exist.)
at COM.ibm.db2.jdbc.app.DB2Driver.(Unknown Source)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1243)
at com.hp.sm.doctor.collection.commandLineConsole.CommandLineEntryMain.main(CommandLineEntryMain.java:143)

I googled a lot, seems I am all set with everything, but this exception won’t go away..
Here are details:
PATH=/usr/java5/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/home/scuser/SC6283/RUN:/home/fpeSM/sqllib/bin:/home/fpeSM/sqllib/adm:/home/fpeSM/sqllib/misc
CLASSPATH=/home/fpeSM/sqllib/java/db2java.zip:/home/fpeSM/sqllib/java/db2jcc.jar:/home/fpeSM/sqllib/java/sqlj.zip:/home/fpeSM/sqllib/function:/home/fpeSM/sqllib/java/db2jcc_license_cu.jar:.
LIBPATH=/usr/lib:/lib:/home/fpeSM/sqllib/lib64

I run my script by

java -cp /home/fpeSM/sqllib/java/db2java.zip:/home/fpeSM/sqllib/java/db2jcc.jar:/home/fpeSM/sqllib/java/sqlj.zip:/home/fpeSM/sqllib/function:/home/fpeSM/sqllib/lib32:/home/fpeSM/sqllib/java/db2jcc_license_cu.jar:.:smdoctor.jar com.hp.sm.doctor.collection.commandLineConsole.CommandLineEntryMain

Can anyone tell me what’s gist to make the whole thing work? Many many.. thanks!
P.S., libdb2jdbc.so DOES exist under /home/fpeSM/sqllib/lib64.

Even

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:50:11+00:00Added an answer on May 23, 2026 at 10:50 pm

    Try telling Java where the DB2 native libraries are located by adding -Djava.library.path=/home/fpeSM/sqllib/lib64:... to your command. Your PATH and CLASSPATH variables and command raises some questions:

    • Why would you have two different versions of Java (1.4 and 5)
      available on the PATH?
    • It seems two versions of the DB2 drivers are
      available on the CLASSPATH. db2java.zip provides the DB2 JDBC type 2 and 4
      drivers and db2jcc.jar provides the DB2 JDBC type 4 driver. DB2
      did away with the type 2 JDBC driver somewhere around version late-8
      or early-9.
    • Are 32-bit and 64-bit libraries installed? If you’re running 32-bit Java, make sure your
      library is a 32-bit library. I’m not familiar with AIX, but for Linux I would use file libdb2jdbc.so to check if it’s a 32-bit or 64-bit library.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having this annoying problem, I can't seem to get the starting and ending
This is an annoying problem I am having with Twisted.web. Basically, I have a
An annoying problem I'm having with the modernizr script. This script is supposed to
I'm having this problem, same as ever, but never try to find the right
I'm having this problem and I reached a deadlock, I would try anything I've
I'm having an annoying problem, that may have a simple answer! I have a
I am having this most annoying issue when I try to rebuild my solution
I've been having this really annoying thing happen the past few days, that has
we've got an almost-finished-ready-to-go magento shop, that has developed an annoying problem. On the
Well, sorry about the confusing title but I'm having a slightly annoying problem with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.