码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2016-01-05 18:51:08      阅读:464      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!