title: Gradle Build failed with an exception following spring tutorial
body: <p>I'm new to gradle so i was following the following tutorial : <a href="https://spring.io/guides/gs/gradle/#scratch" rel="nofollow">https://spring.io/guides/gs/gradle/#scratch</a> </p>
  
  <p>when i run the gradle task i can see that the java tasks are showing after creating a build.gradle with apply plugin: 'java'
  But when i use the command gradle build i get following error.</p>
  
  <p>FAILURE: Gradle Build failed with an exception 
  *what whent wrong:
  execution failed for task ':compileJava'.
  could not find tools.jar
  *try..</p>
  
  <p>any ideas?</p>