Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jni.h not open - can not compile

 
Ruilin Yang
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
me too this.error.
 
Nizar JAVA MAN
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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!
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this question is about JNI, it belongs in the "Other Java APIs" forum... moving it there.
 
Georgy Bolyuba
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

George
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic