title: Error when building Java project in Maven
body: <p>I downloaded a Java project from GitHub and trying to use Maven to build it.
  I use the command <em>mvn clean package</em> on Windows 7.</p>
  
  <p>I get the following error:</p>
  
  <pre><code> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
   3.2:compile (default-compile) on project force-wsc: Compilation failure
   [ERROR] Unable to locate the Javac Compiler in:
   [ERROR] C:\jdk1_8_25\..\lib\tools.jar
   [ERROR] Please ensure you are using JDK 1.4 or above and
   [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
   [ERROR] In most cases you can change the location of your Java
   [ERROR] installation by setting the JAVA_HOME environment variable.
  </code></pre>
  
  <p>As you can see in the error message, I AM pointing to a JDK.
  My JAVA_HOME is set to C:\jdk1_8_25</p>
  
  <p>When I run java -version, I get:</p>
  
  <pre><code> java version "1.8.0_25"
   Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
   Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
  </code></pre>
  
  <p>There are my posts about this error but they all were pointing to a JRE and not a JKD. Mine is already pointing to a JDK so I'm not sure what is wrong here.</p>