- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- JNI issue: Problem loading a 64 bit shared library
Operating System - Linux
1752511
Members
5048
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 01:43 AM
тАО03-20-2006 01:43 AM
Dear All,
I have a Java application that is compiled and running on an HP itanium box. This application (which is a product from HP) has been compiled using Itanium 32-bit JDK binaries (found under JAVA_HOME/bin/IA64N directory).
Also, I have a C++ application which we built a shared library. This application is a 64-bit application specific to IA64 platform.
When I try loading this shared library in my Java application (for JNI communication) where Java app is compiled using 32-bit JDK while the shared library is 64-bit, I get a run-time error saying "UnsatisfiedLinkError".
Can anybody pls advice how do I go about loading 64-bit shared library into a 32-bit Java app?
I don't have a chance of recompiling the Java app using 64-bit JDK (found under $JAVA_HOME/bin/IA64W) since this app is a product and I don't own the source. Same with C++ app since this too is a part of another HP product.
Your inputs are highly appreciated.
Thanks,
Giri
I have a Java application that is compiled and running on an HP itanium box. This application (which is a product from HP) has been compiled using Itanium 32-bit JDK binaries (found under JAVA_HOME/bin/IA64N directory).
Also, I have a C++ application which we built a shared library. This application is a 64-bit application specific to IA64 platform.
When I try loading this shared library in my Java application (for JNI communication) where Java app is compiled using 32-bit JDK while the shared library is 64-bit, I get a run-time error saying "UnsatisfiedLinkError".
Can anybody pls advice how do I go about loading 64-bit shared library into a 32-bit Java app?
I don't have a chance of recompiling the Java app using 64-bit JDK (found under $JAVA_HOME/bin/IA64W) since this app is a product and I don't own the source. Same with C++ app since this too is a part of another HP product.
Your inputs are highly appreciated.
Thanks,
Giri
Solved! Go to Solution.
- Tags:
- JNI
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 01:47 AM
тАО03-20-2006 01:47 AM
Solution
Hi Giri,
I think, you can't link a 32 bit application with 64 bit shared library. Either you have to port your app into 64 bit or, library to 32 bit.
-Arun
I think, you can't link a 32 bit application with 64 bit shared library. Either you have to port your app into 64 bit or, library to 32 bit.
-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 02:20 AM
тАО03-20-2006 02:20 AM
Re: JNI issue: Problem loading a 64 bit shared library
Hi
Linking 32-bit and 64-bit object files (.o, .sl, .a) together is not supported. All modules in a program must be linked from either 32-bit objects or 64-bit objects.
Steve STeel
Linking 32-bit and 64-bit object files (.o, .sl, .a) together is not supported. All modules in a program must be linked from either 32-bit objects or 64-bit objects.
Steve STeel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 03:41 AM
тАО03-20-2006 03:41 AM
Re: JNI issue: Problem loading a 64 bit shared library
Well Giridhar you can't mix modes when compiling your application.
cheers!
cheers!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP