首页 > 编程语言 > 详细

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

时间:2016-01-05 18:49:47      阅读:477      评论:0      收藏:0      [点我收藏+]

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 Files\Java\jre1.8.0_66\..\lib\tools.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 Files\Java\lib\tools.jar

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

技术分享

拷贝tools.jar包

技术分享

 

最后显示的是这样的

技术分享

至此可以编译了!

 

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

原文:http://www.cnblogs.com/hushaojun/p/5103019.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!