Rate This Document
Findability
Accuracy
Completeness
Readability

jni.h or jni_md.h Not Found

Symptom

An error message is displayed indicating that the jni.h or jni_md.h file cannot be found.

Key Process and Cause Analysis

The path for JAVA_HOME is not configured.

Conclusion and Solution

Configure the JAVA_HOME path and perform compilation again. For details, see Installing OpenJDK in the Hadoop Porting Guide (CentOS & openEuler). If the problem persists, move the jni.h and jni_md.h files in the JDK used for compilation to the root directory.