472,993 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

error on jdbc type 2 connection with native implementation

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
4 5069
"%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
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
"%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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We...
1
by: sid_mulpuru | last post by:
I am trying to read data from a DB2 Blob Data type Field (using wsad 5.1.0) using getBlob() which when executed gives an SQL Exception 2005-01-07 15:48:40,506 ERROR - Error in...
1
by: Praveen | last post by:
Hi, I have installed WebSphere Portal on AIX and connected to DB2 on a remote machine, Getting the followin errors when trying to get the values from database thru applications installed on...
15
by: Joe Weinstein | last post by:
Hi. Below is a simple JDBC program to insert and extract a numerical value. When ResultSet.getDouble() is called, the same program produces different output on solaris than it does on Linux. I...
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
12
oll3i
by: oll3i | last post by:
when i launch the application from sun application server the console opens throws something i cannt even read what and closes before the application opened and threw nullpointerexception now it...
1
by: vincedav31 | last post by:
I have a connection to a server and my database. I use it like this in my code : Class.forName("com.mysql.jdbc.Driver"); String DBurl = "jdbc:mysql://138.63.222.7:3306/ns3"; m_connection =...
8
by: ajos | last post by:
hi frnds, the situation is im developing a web application in struts-- my specifications-eclipse3.2.2,struts1.1,tomcat5.5.23 mysql5.0 db. the scenario-i have a jsp page which adds the...
0
by: Lars Hylleberg | last post by:
In my company we are runing java Webshere applications on Windows platform and connecting to DB2 V8 on z/OS mainframe. Until now we have used the type 2 JDBC driver, which are using the DB2 Connect...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.