Sửa lỗi “Fatal error compiling: tools.jar not found” của Apache Maven trong Eclipse
Khi làm việc với Apache Maven trong Eclipse, mình tin chắc rằng không ai không một lần gặp phải lỗi sau khi build ứng dụng:
|
1 2 3 4 5 6 7 |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project example: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre1.8.0_101\..\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 |
Nguyên nhân ở đây là gì? Đó chính là do mặc định Apache Maven sẽ sử dụng plugin Maven Compiler… Read More



