File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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
Su JinQuan

Joined: Mar 21, 2004
Posts: 1
me too this.error.

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

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!

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

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

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


SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
I agree. Here's the link:
subject: jni.h not open - can not compile
It's not a secret anymore!