- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- java.lang.UnsatisfiedLinkError
Operating System - Linux
1753534
Members
5424
Online
108795
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
тАО06-17-2008 02:22 AM
тАО06-17-2008 02:22 AM
java.lang.UnsatisfiedLinkError
Hello All,
I have generated a shared library with gcc using the following compile and linking options:
compiling options:
gcc -fPIC -D_REENTRANT -mpa-risc-2-0
Linking options:
gcc -lc -shared -mpa-risc-2-0
When I access the generated shared library using java( using System.load() ) it is giving the following error:
java.lang.UnsatisfiedLinkError: /home/kodsu03/anotherCB/libHpuxPariscStats.so: sp
ecified file is not a shared library, or a format error was detected.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1585)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1456)
at java.lang.Runtime.load0(Runtime.java:737)
at java.lang.System.load(System.java:811)
I have the following configuration:
gcc - version 4.2.1(64 bit PARSIC gcc)
OS: HP-UX 11.23(PARISC 64bit)
JDK - 1.4.2.03 64bit
I would appreciate any help on this.
Thanks in advance.
Regards,
Surya.
I have generated a shared library with gcc using the following compile and linking options:
compiling options:
gcc -fPIC -D_REENTRANT -mpa-risc-2-0
Linking options:
gcc -lc -shared -mpa-risc-2-0
When I access the generated shared library using java( using System.load() ) it is giving the following error:
java.lang.UnsatisfiedLinkError: /home/kodsu03/anotherCB/libHpuxPariscStats.so: sp
ecified file is not a shared library, or a format error was detected.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1585)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1456)
at java.lang.Runtime.load0(Runtime.java:737)
at java.lang.System.load(System.java:811)
I have the following configuration:
gcc - version 4.2.1(64 bit PARSIC gcc)
OS: HP-UX 11.23(PARISC 64bit)
JDK - 1.4.2.03 64bit
I would appreciate any help on this.
Thanks in advance.
Regards,
Surya.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 04:38 AM
тАО06-17-2008 04:38 AM
Re: java.lang.UnsatisfiedLinkError
Shalom Surya,
You may wish to update JDK from http://www.hp.com/go/java
The Java you use is out of date and buggy. There are a number of highly recommended OS patches listed on the site above which you might find useful in diagnosing this problem.
SEP
You may wish to update JDK from http://www.hp.com/go/java
The Java you use is out of date and buggy. There are a number of highly recommended OS patches listed on the site above which you might find useful in diagnosing this problem.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 05:52 AM
тАО06-17-2008 05:52 AM
Re: java.lang.UnsatisfiedLinkError
>specified file is not a shared library, or a format error was detected.
This says your shlib format is wrong. What does "file libHpuxPariscStats.so" show?
>gcc - version 4.2.1(64 bit PARISC gcc)
>JDK - 1.4.2.03 64bit
Are you sure you are invoking the 64 bit java?
Are you only compiling C code and not C++?
This says your shlib format is wrong. What does "file libHpuxPariscStats.so" show?
>gcc - version 4.2.1(64 bit PARISC gcc)
>JDK - 1.4.2.03 64bit
Are you sure you are invoking the 64 bit java?
Are you only compiling C code and not C++?
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