aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes problem in jni.h 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 "problem in jni.h" Watch "problem in jni.h" New topic
Author

problem in jni.h

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
Hi,

I'm working on jni in linux for that I have to generate the .so file.
But when I use gcc to compile it showing me the following error
error: jni.h: No such file or directory

how to tackle this error.

thanks
swapnil
Daniel Gagnon
Greenhorn

Joined: Aug 27, 2006
Posts: 13
First you'll need to find your jni.h file.



On my distro, it's at: /usr/lib/jvm/java-6-openjdk/include/jni.h

And then you'll need to add it on the command line to gcc:



 
 
subject: problem in jni.h
 
Similar Threads
New to JNI
jni.h not open - can not compile
JNI Problem
JNI error
jni problem