- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- JNI and 64bit
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
Forums
Discussions
Discussions
Discussions
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
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
04-08-2007 08:30 PM
04-08-2007 08:30 PM
JNI and 64bit
I am working on JNI with IA64 HP_UX 11.23 machine. I had my libraries *.so compile and linked successfully but when i try to run, it actually throw
"Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/adm/jni/libSharedLib.so: a specified handle or index is not valid.
I did a print java.library.path before the system.loadlibrary is called and was printed successful. Upon loading the library, it printed the above error.
i compiled with the following cc and linker
cc -Ae +DD64 +u4 -z -c -D_HPUX -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE_EXTENDED -D_PTHREADS_DRAFT4 -DPRODUCTION -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux -I. SharedLib.c
ld -b -o /home/adm/jni/libSharedLib.so SharedLib.o
Additional information:
When i removed +DD64 from the compile statement, the system.loadlibrary("SharedLib") can be loaded successfully (No error thrown). Immediately after this library called i did a println but the error is still thrown after the println call.
Any help will be greatly appreciated.
- Tags:
- JNI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2007 09:32 PM
04-08-2007 09:32 PM
Re: JNI and 64bit
This is no longer supported, remove it.
>When i removed +DD64 from the compile statement
It seems you are not invoking the 64 bit java?
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/hotspot.html#-d64
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2007 09:43 PM
04-08-2007 09:43 PM
Re: JNI and 64bit
java version "1.4.2.04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.04-040628-18:09)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.04-040628-23:33-IA64N IA64, mixed mode)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2007 10:43 PM
04-08-2007 10:43 PM
Re: JNI and 64bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2007 10:50 PM
04-08-2007 10:50 PM
Re: JNI and 64bit
3 points is a little small for solving your problem. ;-)