有問題,求解
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project h2: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\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/MojoExecutionException
2016-01-16
? ? 在Eclipse環(huán)境下,使用Maven進行deploy時發(fā)現(xiàn)報了該錯誤:Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre6\..\lib\tools.jar.
? ? 解決辦法:
? ? ? ? ? ? 點擊Eclipse菜單:Window->Preferences->Java->Installed JREs,選擇右側(cè)的Edit來修改JREs,之前我的JRE home設(shè)置的是:C:\Program Files\Jave\jre6,這個位置下是沒有tools.jar包的,修改成:C:\Program Files\Java\jdk1.6.0_25,然后點擊彈出窗口的Finish按鈕和主頁面中的OK按鈕,則問題解決。