By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,611 Members | 2,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,611 IT Pros & Developers. It's quick & easy.

error on jdbc type 2 connection with native implementation

P: n/a
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!

Apr 1 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"%NAME%" <hu*********@gmail.comwrote in message
news:11**********************@p15g2000hsd.googlegr oups.com...
>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!
Did you carefully read the installation instructions of the DB2 client for
Solaris? I thought the type 2 driver requires installation, not just
uncompress (like you can do for the type 4 driver). But I am not sure which
DB2 version you are using.
Apr 1 '07 #2

P: n/a
Did you carefully read the installation instructions of the DB2 client for
Solaris? I thought the type 2 driver requires installation, not just
uncompress (like you can do for the type 4 driver). But I am not sure which
DB2 version you are using.
I forgot to mention that I do not have admin privilege to install
anything, but
I am still required to get this wroking.... :-(

Apr 1 '07 #3

P: n/a
"%NAME%" <hu*********@gmail.comwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...
I forgot to mention that I do not have admin privilege to install
anything, but
I am still required to get this wroking.... :-(
I would spend the time working on your resume.
Apr 1 '07 #4

P: n/a
Ian
%NAME% wrote:
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!
You need to have your system administrator install the correct
(64-bit) client code.


Apr 2 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.