tools.jar找不到问题

来源:互联网 发布:淘宝怎么样开直通车 编辑:程序博客网 时间:2024/05/15 03:37
[ERROR] Failed to execute goal on project IM: Could not resolve dependencies for project IM:IM:war:1.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path D:\jre8/../lib/tools.jar -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

错误原因:如果Myeclipse中的环境中如果指定的是JRE就会出现找不到的情况,因为这一个包是在JDK的lib包下面,所以在Myeclipse中指定JRE时指定为JDK的路径就行操作方法如下:

【Windows】-【Preferences】-【Java】-【Install JREs】   




0 0
原创粉丝点击