title: Gradle does not find tools.jar
body: <p>I am using javadoc doclets with gradle, so I need to use the package tools.jar, which is in the lib folder from the jdk (1.6.0_26 in my case).</p>
  
  <p>The point is that gradle does not take it automatically, so I was adding that tools package to my libs folder, and then adding it to dependencies.gradle . </p>
  
  <p>Now I want to take it directly from my JDK home into my dependencies.gradle. Is there a way to do that? I have tried the next in my dependencies.gradle:</p>
  
  <pre><code>compile files("${System.properties['java.home']}/lib/tools.jar")
  </code></pre>
  
  <p>But it does not find it while compiling.</p>