Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other JSE/JEE APIs and the fly likes jni.h not open - can not compile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "jni.h not open - can not compile" Watch "jni.h not open - can not compile" New topic
Author

jni.h not open - can not compile

Ruilin Yang
Ranch Hand

Joined: Jan 06, 2002
Posts: 150
I have a c++ invocation API calling java classes and in the same directory I put jni.h. However, when I tried to compile the code. I got error message:
fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
Please help !
Thank you in advance
Ruilin
Su JinQuan
Greenhorn

Joined: Mar 21, 2004
Posts: 1
me too this.error.
Nizar JAVA MAN
Greenhorn

Joined: Jul 05, 2005
Posts: 1
hi !
u can copy some files (.h) from jdk\include to your home directory and replace #include <jni> by #include "jni"
if u have other error search .h in jdk\include and copy them in your home directory

good luck !!
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"Nizar JAVA MAN" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Since this question is about JNI, it belongs in the "Other Java APIs" forum... moving it there.
Georgy Bolyuba
Ranch Hand

Joined: Feb 18, 2005
Posts: 162
Hi

Please describe you problem. Which compiler do you use? What is you OS?

George


SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
 
 
subject: jni.h not open - can not compile