eclipse maven tools.jar找不到y也就是在这个

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project uec-receiver-api: Compilation failure
Unable to locate the Javac Compiler in:
C:Program FilesJavajre1.8.0_66..lib ools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

上面报错的地址其实是C:Program FilesJavalib ools.jar

也就是在这个位置找不到tools.jar包,所以我们只需要创建lib文件夹

拷贝tools.jar包

最后显示的是这样的

至此可以编译了!

原文地址:https://www.cnblogs.com/hushaojun/p/5103019.html