jni.h File Not Detected When Compiling Wildfly-openssl-1.0.4.Final.jar
Symptom
An error is reported when compiling wildfly-openssl-1.0.4.Final.jar:
1 | ../libwfssl/include/wfssl.h:41:17: fatal error: jni.h: No such file or directory |
Key Process and Cause Analysis
The header file jni.h is not found in ./libwfssl/include/. The header file is an .h file provided by Java.
Conclusion and Solution
Run the find command to perform global search, copy the .h file in the Java-related path to the ./libwfssl/include/ directory, and recompile the file.
You can use this method to solve similar problems.
Parent topic: Troubleshooting