On Ubuntu 12.04, I have jdk7 installed from sun / oracle. 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 ...
The header file generated by the JDK has include <jni.h> and he is currently complaining
fatal error: jni.h: No such file or directory.
There is no location specification in my Makefile where jni.h . And I ask if it is possible to configure a specific system parameter to make the jni.h path (say /usr/lib/jvm/jdk1.7.0_07/include/jni.h ) known during compilation.
java classpath jni
Richard Jan 25 '13 at 20:19 2013-01-25 20:19
source share