This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes jni problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "jni problem" Watch "jni problem" New topic
Author

jni problem

lalit mohan
Greenhorn

Joined: Apr 08, 2004
Posts: 16
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

Joined: Jun 07, 2003
Posts: 88
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jni problem
 
Similar Threads
JNI Problem
Problem running C++ implementaion in Netbeans 6.8 (cygwin compiler)
JNI error
From where can I get 'jni.h' file???
jni.h not open - can not compile