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
  • 30,335
  • 25
  • 102
  • 137
Max
  • 1
  • 1

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
  • 485
  • 6
  • 9