title: Maven uses JRE7 instead of JDK?
body: <p>Eclipse Juno Release
  <code>Window / Preferences / Java / Installed Jres</code>
  shows two installed Jres.
  <code>jdk1.7.0_07</code> and <code>jre7</code>.</p>
  
  <p>I get the following error when trying to <code>clean</code> and <code>process-classes</code> with maven:</p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-compiler- 
  plugin:2.4:compile (default-compile) on project reputation: Fatal 
  error compiling: tools.jar not found: C:\Program 
  Files\Java\jre7\..\lib\tools.jar
  </code></pre>
  
  <p>I added <code>tools.jar</code> as external jar already, out of desperation, but it didn't help. Why is maven trying to use the other <code>JRE</code>?</p>
  
  <p>EDIT:</p>
  
  <p>Compiler plugin excerpt from <code>pom.xml</code></p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.4&lt;/version&gt;
      &lt;configuration&gt;
          &lt;source&gt;1.6&lt;/source&gt;
          &lt;target&gt;1.6&lt;/target&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>