0

I typed in the command gradle -q run into the command prompt and I got the response

"Execution failed for task ':compileJava'.

Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_161 contains a valid JDK installation."

I don't understand what this means.

MrTux
  • 32,350
  • 30
  • 109
  • 146
Max
  • 21
  • 2

1 Answers1

1

The error is basically saying that it can't find the JDK.

To fix the problem, you need to update/create your "JAVA_HOME" system variable to point to a valid JDK. Your problem may be that you haven't created that system variable.

Here are some instructions for how to do this in Windows.

Jonathan Steele
  • 589
  • 6
  • 9