In Ubuntu 12.04, I have jdk7 from sun/oracle installed. When locate jni.h
, it prints multiple locations
/usr/lib/jvm/java-6-openjdk-amd64/include/jni.h
/usr/lib/jvm/jdk1.7.0_07/include/jni.h
...
In the header file generated by JDK, there is include <jni.h>
, and currently it complains
fatal error: jni.h: No such file or directory.
In my Makefile
, there is no specification of locations where jni.h
is. And I am asking if possible to configure certain system parameter to make path of jni.h
(say, /usr/lib/jvm/jdk1.7.0_07/include/jni.h
) to be known when being compiled.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…