No Compiler is Provided in this environment Perhaps you are running on JRE rather than a JDK

Problem Description:

When using packaged Jenkins, throw this wrong, but JDK and Maven are already installed, no problem of. Which Jenkins used Pipline pipeline project to deploy.

problem solved:

When using Pipline deployment projects in the region compiled code is automatically use the / usr / bin / java soft connection to compile, you need to see less of this soft connection is not pointing to the java command in the JAVA_HOME in bin directory, and if not, this soft connection directly removed, and the new: ln -s / usr / local / jdk8 / bin / java / usr / bin / java

Search the web are generally out of the question in the eclipse, no problem Jenkins deployment.

Guess you like

Origin www.cnblogs.com/zhangjianbing/p/11086813.html