Checking for JDK os include directory... Cannot find jni_md.h in /bin

68 Views Asked by At

I'm setting up tomcat 9 using java 21 and getting this error.

checking JAVA_HOME... /bin
  adding "-I/bin/include" to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory... Cannot find jni_md.h in /bin/
configure: error: You should retry --with-os-type=SUBDIR

Anyone seem this before having a missing file called jni_md.h on java 21 and tomcat 9.

I've tried some of the stack overflow answer I found but they all seem to be pointing to an old version of java.

I'm running this on RHEL-9

0

There are 0 best solutions below