Oct 27, 2015

tool.jar not found error, during maven clean build

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.4:compile (default-compile) on project springmvc: Fatal error compiling: tools.jar not found: C:\Program Files (x86)\Java\jre7\..\lib\tools.jar -> [Help 1]











We typically encounter this error when we have a JRE instead of JDK. Configuring JDK will eclipse will resolve this issue

Steps to configure JDK in eclipse:

1. Window -> Preferences -> Java-> Installed JREs
2. Click on [Add] button and select the JDK from the file-system
3. Select the newly added JDK and click on [Finish]

No comments:

Post a Comment