I am using jdbc type2 connection via "COM.ibm.db2.jdbc.app.DB2Driver",
on Solaris
I first get this error when it tries to load the native
implementation:
java.sql.SQLException: java.lang.UnsatisfiedLinkError:
Can't load Sparc 32-bit .so on a Sparc v9 64-bit platform
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(DB2Driver.ja va:240)
Then I realize the problem is that the library is 32 bits. So I
downloaded the db2 client (650M) for Solaris,
uncompressed it, and locate the "libdb2jdbc.so.1" under the "lib64"
directory. I renamed it to "libdb2jdbc.so"
and put it in my own directory, and set "LD_LIBRARY_PATH" to be that
directory. Now I get this error:
java.sql.SQLException: java.lang.UnsatisfiedLinkError:
/mydir/lib64/libdb2jdbc.so: Can't load Sparc v9 64-bit .so on a Sparc
v9 64-bit platform
This error mesg looks nonsense to me. I set LD_DEBUG to help level but
did not get anything useful
at all. Anybody can help me? Thanks a bunch!