In Ubuntu 12.04, I have jdk7 from sun/oracle installed. When
fatal error: jni.h: No such file or directory.
You have to tell your compiler where is the include directory. Something like this:
But it depends on your makefile.