Gradle not found Java class path

I installed JAVA_HOMEpath -C:\Program Files\Java\jdk1.8.0_112

and add the following links to the path - %JAVA_HOME%\binand%JAVA_HOME%\lib

but when I try to build a Gradle project, I get an error:

Called: java.lang.IllegalStateException: Could not find tools.jar. Verify that C: \ Program Files \ Java \ jre1.8.0_144 contains a valid JDK Installation.

But I don’t understand how Gradle found C:\Program Files\Java\jre1.8.0_144I don’t have this in my class path

How to set the correct path for Gradle?

+1
source share

All Articles