title: Gradle Error:Could not create an instance of type com.sun.tools.javac.api.JavacTool
body: <p>I created a new root folder &amp; it contains build.gradle with <code>apply plugin =&quot;java&quot;</code>
  A folder src -&gt; main -&gt; java  (contains code)
  When I run <code>gradle assemble</code> I'm getting this error</p>
  <blockquote>
  <p>Could not create an instance of type com.sun.tools.javac.api.JavacTool.</p>
  <p>:compileJava failed</p>
  <p>:processResources UP-TO-DATE</p>
  </blockquote>
  <p>Why is my build process not successful?(i'm on ubuntu 16.04)</p>