i just update the jdk version to 17
sudo apt update sudo apt install openjdk-17-jdk -y
And verify that 11 jdk verison is installed
java -version
And if you have multiple Java versions, set Java 17 as the default using:
sudo update-alternatives --config java
And restarted jenkins
sudo systemctl restart jenkins
my issue got solved