Gradle can't find tools.jar

I found this post but the answer did not solve my problem. I am running openSUSE Leap 15 with Java 1.8, changing the OS or Java version is not an option.

When I try to build with the command ./gradlew clean build i get the following error:

:buildtools:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':buildtools:compileJava'.

> Could not find tools.jar. Please check that /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre contains a valid JDK installation.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts