Jenkins 添加节点报错

报错日志

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Jenkins 添加节点报错_第1张图片

原因分析:

由于当前使用的为最新版本的Jenkins【其内部用的是JDK17】,待添加节点上的JDK版本为1.8版本;

解决方式

手动上传版本≥11的JDK,并在为节点配置JDK目录;
Jenkins 添加节点报错_第2张图片

结果展示

Jenkins 添加节点报错_第3张图片
Jenkins 添加节点报错_第4张图片

你可能感兴趣的:(Jenkins,jenkins,servlet,运维)