Jenkins CLI not working

Hello Kodkloud team,

I’m facing a hurdle in connecting Jenkins CLI on my centos machine. I’ve configured the public key with my Jenkins server and also downloaded jenkins-cli.jar file as you can see in the screenshot. When I run the java command it shows this error. I’ve identified both the java & javac version are the same still it is showing a JNI error. Anyone, please reach out to me if any of you had faced this kind of error.

Thanks.

Hi @sarmadshafique74 ,
What’s the java version installed on the CentOS machine?

Aplologies for my late response, it is 1.8.0_34

You can see it
ss'
in the screenshot.

It seems like an incompatibility issue. Can you Install the below version and try it?

java-11-openjdk