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

problem in jni.h

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129

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.

Daniel Gagnon

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:

I agree. Here's the link:
subject: problem in jni.h
It's not a secret anymore!