title: Build error: missing artifact com.sun:tools:jar:1.6
body: <p>Trying to build PlayN sample projects I get:</p>
  
  <pre><code>Missing artifact com.sun:tools:jar:1.6  pom.xml /playn-cute line 6  Maven Dependency Problem
  </code></pre>
  
  <p>On every <code>pom.xml</code> file.
  How do I resolve it?</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>I've added the <a href="http://maven.apache.org/general.html#tools-jar-dependency">profiles node</a> to the <code>pom.xml</code>, but the error remains. I've checked the <code>tools.jar</code> is actually exists, and it didn't. So I've added <code>tools.jar</code> to lib folder. And still the error remains.</p>
  
  <p><strong>The full pom.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;com.googlecode.playn&lt;/groupId&gt;
          &lt;artifactId&gt;playn-project&lt;/artifactId&gt;
          &lt;version&gt;1.0.1&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;artifactId&gt;playn-cute&lt;/artifactId&gt;
      &lt;name&gt;PlayN Cute Metaproject&lt;/name&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;properties&gt;
          &lt;playn.version&gt;1.0.1&lt;/playn.version&gt;
      &lt;/properties&gt;
  
      &lt;modules&gt;
          &lt;module&gt;core&lt;/module&gt;
          &lt;module&gt;java&lt;/module&gt;
          &lt;module&gt;html&lt;/module&gt;
          &lt;!-- &lt;module&gt;flash&lt;/module&gt; --&gt;
          &lt;module&gt;android&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;default-tools.jar&lt;/id&gt;
              &lt;activation&gt;
                  &lt;property&gt;
                      &lt;name&gt;java.vendor&lt;/name&gt;
                      &lt;value&gt;Sun Microsystems Inc.&lt;/value&gt;
                  &lt;/property&gt;
              &lt;/activation&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;com.sun&lt;/groupId&gt;
                      &lt;artifactId&gt;tools&lt;/artifactId&gt;
                      &lt;version&gt;1.6&lt;/version&gt;
                      &lt;scope&gt;system&lt;/scope&gt;
                      &lt;systemPath&gt;${java.home}/../lib/tools.jar&lt;/systemPath&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/project&gt;
  </code></pre>