- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- #include "jni.h" is giving the error "Can't open i...
Operating System - HP-UX
1821849
Members
3429
Online
109638
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
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
Go to solution
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
тАО03-22-2002 06:09 AM
тАО03-22-2002 06:09 AM
Hi,
I am trying to write program for JNI (in HP-UX 10.20).
I am getting problem with include.
It is giving the following error
cpp: "c1.c", line 1: error 4036: Can't open include file 'jni.h'.
The code which i used is :
#include "jni.h"
#include
main()
{
printf("test");
}
Path i have set is
/opt/java/bin:/opt/java/include
$ cc c1.c
cpp: "c1.c", line 1: error 4036: Can't open include file 'jni.h'.
I hope i can get the reply.
Thanks,
Sukumar
I am trying to write program for JNI (in HP-UX 10.20).
I am getting problem with include.
It is giving the following error
cpp: "c1.c", line 1: error 4036: Can't open include file 'jni.h'.
The code which i used is :
#include "jni.h"
#include
main()
{
printf("test");
}
Path i have set is
/opt/java/bin:/opt/java/include
$ cc c1.c
cpp: "c1.c", line 1: error 4036: Can't open include file 'jni.h'.
I hope i can get the reply.
Thanks,
Sukumar
The Road for success' is always under construction
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2002 06:17 AM
тАО03-22-2002 06:17 AM
Re: #include "jni.h" is giving the error "Can't open include file"
Hi,
Go to www.hp.com/go/java
and do a search for jni.h
This will give you a link to a document
"Using Java 2 JNI on HP-UX"
There you will find info on how to create
this include-file.
Regards
Olav
Go to www.hp.com/go/java
and do a search for jni.h
This will give you a link to a document
"Using Java 2 JNI on HP-UX"
There you will find info on how to create
this include-file.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2002 06:20 AM
тАО03-22-2002 06:20 AM
Solution
Make sure you're compiling with the correct -I flags so that the compiler knows where to find the header files. The following example shows how a jni module should be compiled:
$ cc -Ae +u4 +z -c -D_HPUX -I/opt/java/include -I/opt/java/include/hp-ux cImpl.c
This comes from the following document, which may be of use to you:
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1/JNI_java1.html
Regards,
Steve
$ cc -Ae +u4 +z -c -D_HPUX -I/opt/java/include -I/opt/java/include/hp-ux cImpl.c
This comes from the following document, which may be of use to you:
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1/JNI_java1.html
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2002 06:48 AM
тАО03-22-2002 06:48 AM
Re: #include "jni.h" is giving the error "Can't open include file"
Thanks to all for the reply
-Sukumar
-Sukumar
The Road for success' is always under construction
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