- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- java.lang.UnsatisfiedLinkError: Can't load library...
Operating System - HP-UX
1821584
Members
3635
Online
109633
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
Discussions
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
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
12-25-2008 09:26 PM
12-25-2008 09:26 PM
java.lang.UnsatisfiedLinkError: Can't load library:/home/sw/libStats.so
Hi World,
I generated a .jar and a.so (shared library)binaries for a 64bit PA_RISC using the
following configuration:
Compiler: gcc-hppa64-4.3.1.depot
Java : jdk6_16002_pa.depot
OS : PA_RISC 64 Bit
I used the Compiling Options as
gcc -fPIC -D_REENTRANT
Linking Options as
gcc -lc -shared
I invoked the 64 Bit JVM using
-d64
When I tried to access these .jar & .so binaries using java(using System.load()). It is generating an error message as :
java.lang.UnsatisfiedLinkError: Can't load library:/home/sw/libStats.so
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
java.lang.Runtime.load0(Runtime.java:770)
java.lang.System.load(System.java:1005)
Does i need to install any gcc patches for rectifying this problem.
Is there any other way of invoking 64 Bit JVM
I would appreciate any help on this
Thanks in Advance
Gopinath
I generated a .jar and a.so (shared library)binaries for a 64bit PA_RISC using the
following configuration:
Compiler: gcc-hppa64-4.3.1.depot
Java : jdk6_16002_pa.depot
OS : PA_RISC 64 Bit
I used the Compiling Options as
gcc -fPIC -D_REENTRANT
Linking Options as
gcc -lc -shared
I invoked the 64 Bit JVM using
-d64
When I tried to access these .jar & .so binaries using java(using System.load()). It is generating an error message as :
java.lang.UnsatisfiedLinkError: Can't load library:/home/sw/libStats.so
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
java.lang.Runtime.load0(Runtime.java:770)
java.lang.System.load(System.java:1005)
Does i need to install any gcc patches for rectifying this problem.
Is there any other way of invoking 64 Bit JVM
I would appreciate any help on this
Thanks in Advance
Gopinath
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2008 01:34 AM
12-26-2008 01:34 AM
Re: java.lang.UnsatisfiedLinkError: Can't load library:/home/sw/libStats.so
I assume you know you can use C (gcc) with java but not g++? With C++, you must use aC++.
>gcc -lc -shared
No need to use -lc on any shlib, remove it.
Is your C source self contained, except for libc?
>gcc -lc -shared
No need to use -lc on any shlib, remove it.
Is your C source self contained, except for libc?
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP