tools.jar找不到问题

[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】   

tools.jar找不到问题_第1张图片

tools.jar找不到问题_第2张图片


你可能感兴趣的:(java)