Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jni problem

 
lalit mohan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i try to making a dll file from vc++. in this when i implement the method in that source file i include the <jni.h> file when i build the project it send error not open jni.h no file or directory jni.h error.
i include the java\bin\include in the path. where this jni.h available.
please help.
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm linux, so the second one may be different for you, or you may not even need it on windoze (jni.h, in turn, includes a file from the second path on linux). Here's what I include:

$(JAVA_HOME)/include
$(JAVA_HOME)/linux/include

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic