- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- JNI - calling JAVA from C program.
Operating System - HP-UX
1753974
Members
7578
Online
108811
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
тАО12-17-2002 05:32 AM
тАО12-17-2002 05:32 AM
JNI - calling JAVA from C program.
I am trying to call java method from a native code like Java.
I took the example from JAVA site and tried to execute .
The executing command and the error I got is :
JNI :>cc -I /opt/java1.4/include/hp-ux -I /opt/java1.4/include -L/opt/java1.4/jre/lib/PA_RISC -ljava invoke.c
cc: "invoke.c", line 36: warning 604: Pointers are not assignment-compatible.
cc: "invoke.c", line 36: warning 563: Argument #2 is not the correct type.
/usr/ccs/bin/ld: Can't open /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
/usr/ccs/bin/ld: No such file or directory
To over cme this we have given in the .profile file :
export SHLIB_PATH=/opt/java1.4/jre/lib/PA_RISC/server:/opt/java1.4/jre/li
b/PA_RISC
where we have the libjvm.sl and libjava.sl
Even then it is referring to /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
Can you please shed some light on how to overcome this problem.
Thanks
Hari Baskar.
I took the example from JAVA site and tried to execute .
The executing command and the error I got is :
JNI :>cc -I /opt/java1.4/include/hp-ux -I /opt/java1.4/include -L/opt/java1.4/jre/lib/PA_RISC -ljava invoke.c
cc: "invoke.c", line 36: warning 604: Pointers are not assignment-compatible.
cc: "invoke.c", line 36: warning 563: Argument #2 is not the correct type.
/usr/ccs/bin/ld: Can't open /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
/usr/ccs/bin/ld: No such file or directory
To over cme this we have given in the .profile file :
export SHLIB_PATH=/opt/java1.4/jre/lib/PA_RISC/server:/opt/java1.4/jre/li
b/PA_RISC
where we have the libjvm.sl and libjava.sl
Even then it is referring to /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
Can you please shed some light on how to overcome this problem.
Thanks
Hari Baskar.
- Tags:
- JNI
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 03:14 AM
тАО12-18-2002 03:14 AM
Re: JNI - calling JAVA from C program.
Hi Hari,
Couple of quick checks:
1. Do your shared libraries have an execute bit on?
2. What OS are you on? Don't you want to link to PA-RISC2.0 instead?
cheers
borax
Couple of quick checks:
1. Do your shared libraries have an execute bit on?
2. What OS are you on? Don't you want to link to PA-RISC2.0 instead?
cheers
borax
That's Mr Sunport to you, Sir! :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2004 05:23 PM
тАО09-09-2004 05:23 PM
Re: JNI - calling JAVA from C program.
Hi Hari,
Even I am facing a similar problem, can you please let me know about the the solution for this. please mail me at lylesh@yahoo.com, I really need a help on this
Thanks,
Lylesh
Even I am facing a similar problem, can you please let me know about the the solution for this. please mail me at lylesh@yahoo.com, I really need a help on this
Thanks,
Lylesh
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