JDK17 throws an error /lib64/libc.so.6: version `GLIBC_2.6' not found

748 Views Asked by At

I am in process of upgrading my project from 1.8 to jdk 17. Everything works well on Ubuntu 18.

While attempting to compile the project with JDK17, I get following error:

Error: dl failure on line 542
Error: failed /****/apps/java/jdk-17.0.3.1/lib/server/libjvm.so, because 
/lib64/libc.so.6: version `GLIBC_2.6' not found (required by /****/apps/java/jdk-17.0.3.1/lib/server/libjvm.so)

OS version: CentOS release 5.11 (Final) Open JDK version: jdk-17.0.2 Oracle JDK version: jdk-17.0.3.1

Any ways to get around this issue without upgrading the OS version as we cannot upgrade OS for a while.

0

There are 0 best solutions below