title: Maven Unable to locate the Javac Compiler in:
body: <p>When i try to generate a war file, it is showing some error like </p>
  
  <pre><code>[ERROR] Unable to locate the Javac Compiler in:
  [ERROR] C:\Program Files\Java\jre7\..\lib\tools.jar
  </code></pre>
  
  <p>When i do <code>echo %path%</code> it shows</p>
  
  <pre><code> C:\Windows\System32;D:\name\name1\Softwares\Maven\apache-maven-3.0.4\b
  in;C:\Program Files\Notepad++\;%JDK_HOME%
  </code></pre>
  
  <p>When i do <code>echo %JDK_HOME%</code></p>
  
  <pre><code>D:\name\name\core java\software\Java\Java_1.6.0_04_win\jdk1.6.0_04\bin
  </code></pre>
  
  <p>I don't know why maven is refering to jre, when my environmental variable is jdk. I also changes installed JRE to jdk1.6.</p>