maven install 时,揭示找不到 .\lib\tools.jar

maven install 时,提示找不到..\lib\tools.jar问题原因:1)windows---preferences---java---compiler---

maven install 时,提示找不到 ..\lib\tools.jar
问题原因:
1)windows--->preferences--->java--->compiler----->compiler compliance level 选择了1.7

2)windows--->preferences--->java--->installed JREs---->installed JREs 中添加的是jre6.

解决办法:将1)中的compiler compliance level改为1.6.

参考:
http://www.cnblogs.com/xushunhang/archive/2013/03/28/2986645.html