jni.h and jni_md.h Not Found When Compiling Netty-all
Symptom
The jni.h and jni_md.h files are not found when compiling Netty-all.
Key Process and Cause Analysis
None
Conclusion and Solution
Open the ${netty-netty-4.1.17.Final}/transport-native-unix-common/pom.xml file, search for the keyword "CFLAGS", and add the following parameters to the file:
1 | -I/usr/lib/jvm/java/include –I/usr/lib/jvm/java/include/linux
|
1 | <env key="CFLAGS" value="-03 -Werror -Wno-attributes -fPIC -fno-omit-frame-pointer -Wunused-variable -fsigned-char |
Parent topic: Troubleshooting