篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java.lang.ClassNotFoundException: hudson.remoting.Launcher相关的知识,希望对你有一定的参考价值。
jenkins构建失败,错误信息如下:
[yjp-dev-po-hrsync] $ "C:\Program Files\Java\jdk1.8.0_121/bin/java" -cp D:\云驾培\jenkins_home\plugins\maven-plugin\WEB-INF\lib\maven35-agent-1.11.jar;D:\云驾培\apache-maven-3.5.0\boot\plexus-classworlds-2.5.2.jar;D:\云驾培\apache-maven-3.5.0/conf/logging jenkins.maven3.agent.Maven35Main D:\云驾培\apache-maven-3.5.0 D:\?~?\jenkins_home\war\WEB-INF\lib\remoting-3.12.jar D:\云驾培\jenkins_home\plugins\maven-plugin\WEB-INF\lib\maven35-interceptor-1.11.jar D:\云驾培\jenkins_home\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.11.jar 54332
Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:133)
at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:64)
ERROR: ================================================================================
ERROR: Invalid project setup: Connection reset
ERROR: [JENKINS-18403][JENKINS-28294] JDK ‘jdk1.8.0‘ not supported to run Maven projects.
ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the master.
ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK.
ERROR: Retrying with slave Java and setting compile/test properties to point to C:\Program Files\Java\jdk1.8.0_121.
ERROR: ================================================================================
Established TCP socket on 54334
原因:存放jenkins和maven的目录名称不要有中文。
D:\云驾培\ 改为 D:\yunjiapei\
以上是关于java.lang.ClassNotFoundException: hudson.remoting.Launcher的主要内容,如果未能解决你的问题,请参考以下文章