title: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin (default-compile) on project: Fatal error compiling: tools.jar not found
body: <p>I have done all the steps provided in <a href="http://www.tutorialspoint.com/jsf/jsf_environment_setup.htm">http://www.tutorialspoint.com/jsf/jsf_environment_setup.htm</a></p>
  
  <p>Apache Maven and Apache tomcat both are ready. I also set the environments. I created Maven project in Eclipse, it gives Build Failure while I run this using Maven build.</p>
  
  <p>It gives this error </p>
  
  <blockquote>
    <p>"Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project Hello2: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre1.8.0_40..\lib\tools.jar"</p>
  </blockquote>
  
  <p>What should I do?</p>