- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- aCC -AA compiled shared library in JNI environment
Operating System - HP-UX
1753792
Members
6831
Online
108799
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
тАО11-05-2003 04:10 AM
тАО11-05-2003 04:10 AM
aCC -AA compiled shared library in JNI environment
When I attempt to use a shared library built using aCC -AA in a Java 1.3 JNI environment, I get a lot of unresolved externals errors from ldd., most of them relating to streams. Is there a way to prevent this? Thanks!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 06:04 AM
тАО11-06-2003 06:04 AM
Re: aCC -AA compiled shared library in JNI environment
Version 1.4.1.03 was the first java for PA-RISC that allowed JNI to use aCC -AA. That is noted in the release notes 1.4.1.03 at-
http://www.hp.com/products1/unix/java/java2/sdkrte14/infolibrary/sdk_rnotes_1.4.0.03.html#C++
http://www.hp.com/products1/unix/java/java2/sdkrte14/infolibrary/sdk_rnotes_1.4.0.03.html#C++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2003 06:31 AM
тАО11-06-2003 06:31 AM
Re: aCC -AA compiled shared library in JNI environment
Oh, I see that the release note details are really focused on starting a jvm from an aCC program. You want to load aCC JNI from the java main. You should review the notes on linking aCC code into a JNI library at-
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/JNI_java2.html#java_native_ac++
You will need to change the -lCsup and -lstd libraries from those link instructions to -lCsup_v2 and -lstd_v2 libraries. You will still need the 1.4.1.03 or newer version of java to allow it to coexist with aCC -AA code.
As hinted at in /opt/java1.4/java.os11.release.notes,
that release can use a SHLIB_PATH trick to get java libraries to use libCsup_v2.sl instead of libCsup.sl. SHLIB_PATH=/opt/java1.4/jre/lib//CXX
causes references to libCsup.sl from libjvm.sl and libfontmanager.sl to really use libCsup_v2.sl.
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/JNI_java2.html#java_native_ac++
You will need to change the -lCsup and -lstd libraries from those link instructions to -lCsup_v2 and -lstd_v2 libraries. You will still need the 1.4.1.03 or newer version of java to allow it to coexist with aCC -AA code.
As hinted at in /opt/java1.4/java.os11.release.notes,
that release can use a SHLIB_PATH trick to get java libraries to use libCsup_v2.sl instead of libCsup.sl. SHLIB_PATH=/opt/java1.4/jre/lib/
causes references to libCsup.sl from libjvm.sl and libfontmanager.sl to really use libCsup_v2.sl.
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