- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Java JNI error on IA64 box [URGENT]
Operating System - Linux
1754014
Members
7312
Online
108811
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
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-14-2006 10:59 PM
тАО03-14-2006 10:59 PM
Java JNI error on IA64 box [URGENT]
Hello,
We are working on a HP Itanium box with JDK 1.4.2, aCC (A.05) and attempting to use JNI to invoke some C++ functions thru a Java client and we have run into issues.
We have a C++ library (in the form of .a files). For the sake of JNI, we recompiled the C++ code with +z option (PIC option) and we built a .sl file with -b option using aCC. We have followed all the steps as per JNI implementation guide (http://www.hp.com/products1/unix/java/infolibrary/prog_guide/JNI_java2.html).
We get the error below when we run Java program. Could anybody pls help?
Also, after creating the .sl file, we verified if there is any dynamic link missing thru ldd and there is no issue there. However, I observed that when I do nm <.sl> file, there are a few UNDEF functions like malloc, printf, etc.
Is it necessary for an .sl file to have no UNDEF symbols in the .sl file to be loaded into the JVM thru System.loadLibrary()? Can somebody pls pls help?
[Raja@ion2.digitalindiasw.net] /opt/java1.4/bin/java RateCDR Loading libraries...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/raja/Rating/Ram
/libRateCDR.sl: some symbol required by the shared library could not be found.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1489)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1368)
at java.lang.Runtime.load0(Runtime.java:737)
at java.lang.System.load(System.java:809)
at RateCDR.(RateCDR.java:12)
Thanks,
Giri
We are working on a HP Itanium box with JDK 1.4.2, aCC (A.05) and attempting to use JNI to invoke some C++ functions thru a Java client and we have run into issues.
We have a C++ library (in the form of .a files). For the sake of JNI, we recompiled the C++ code with +z option (PIC option) and we built a .sl file with -b option using aCC. We have followed all the steps as per JNI implementation guide (http://www.hp.com/products1/unix/java/infolibrary/prog_guide/JNI_java2.html).
We get the error below when we run Java program. Could anybody pls help?
Also, after creating the .sl file, we verified if there is any dynamic link missing thru ldd and there is no issue there. However, I observed that when I do nm <.sl> file, there are a few UNDEF functions like malloc, printf, etc.
Is it necessary for an .sl file to have no UNDEF symbols in the .sl file to be loaded into the JVM thru System.loadLibrary()? Can somebody pls pls help?
[Raja@ion2.digitalindiasw.net] /opt/java1.4/bin/java RateCDR Loading libraries...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/raja/Rating/Ram
/libRateCDR.sl: some symbol required by the shared library could not be found.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1489)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1368)
at java.lang.Runtime.load0(Runtime.java:737)
at java.lang.System.load(System.java:809)
at RateCDR.
Thanks,
Giri
- Tags:
- JNI
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2006 11:06 PM
тАО03-14-2006 11:06 PM
Re: Java JNI error on IA64 box [URGENT]
Giri,
not 100% sure this is relevant, but:
http://doc.cesga.es/superdome/Libraries/B2355-90730.html
gives some simple sripts that may help with tracking down the problem.
not 100% sure this is relevant, but:
http://doc.cesga.es/superdome/Libraries/B2355-90730.html
gives some simple sripts that may help with tracking down the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2006 11:11 PM
тАО03-14-2006 11:11 PM
Re: Java JNI error on IA64 box [URGENT]
Hi Giri,
IA64 uses shared libraries with extension of .so not .sl which is used by PA (11.11).
You can also try asking this question at,
http://h21007.www2.hp.com/dspp/ml/ml_MailingLists_IDX/1,1275,,00.html#25
-Arun
IA64 uses shared libraries with extension of .so not .sl which is used by PA (11.11).
You can also try asking this question at,
http://h21007.www2.hp.com/dspp/ml/ml_MailingLists_IDX/1,1275,,00.html#25
-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
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