- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: UnsatisfiedLinkError loading a library on HP-U...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО08-08-2008 04:42 AM
тАО08-08-2008 04:42 AM
UnsatisfiedLinkError loading a library on HP-UX
"java.lang.UnsatisfiedLinkError: /home/test/bin/hp9000s800/libGetExt.sl: No such file or directory"
The following line of code throws error:
System.load("/home/test/bin/hp9000s800/libGetExt.sl");
I have made sure that the file exists and the user has read permission. I have a windows equivalent .dll and it has problems loading.
Please note that I did not build the library but have to invoke a method in the library. Could there be other libraries that need to be "pre"loaded. I am afraid I do not know how to find that out.
Any help will be much appreciated. TIA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 05:39 AM
тАО08-08-2008 05:39 AM
Re: UnsatisfiedLinkError loading a library on HP-UX
Run "ldd -s /home/test/bin/hp9000s800/libGetExt.sl" to see which libraries (if any) might be required and where the system is trying to find them.
Other options of the ldd command might also be helpful: see "man ldd" for more information.
The documentation of that library should say something about any required dependencies: if the dependencies are not documented, you might want to treat it as a "documentation bug" and file an appropriate bug report to the author of that library.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 10:59 PM - edited тАО09-11-2011 05:47 AM
тАО08-08-2008 10:59 PM - edited тАО09-11-2011 05:47 AM
Re: UnsatisfiedLinkError loading a library on HP-UX
>the user has read permission.
Execute permission is also needed.
>Could there be other libraries that need to be preloaded.
If so, it is a bad design. As MK mentions, using dependent shlibs is better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2008 11:41 AM
тАО08-13-2008 11:41 AM
Re: UnsatisfiedLinkError loading a library on HP-UX
Please try the following. (C:\tmp is just a sample folder)
While running the Java program, set the system property, using the following:
java -Djava.library.path=c:\tmp