473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 5083
"%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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.