Cannot find tools.jar

Completed

Hi all,

I'm trying to get my build to run however i'm having an extreme amount of difficulty getting the build path correct.  I've tried a handful of variety of paths but nothing is working.  

I've attached a link to the build log here: https://pastebin.com/fG1Eng86

 

I would truely love to be able to get this working if possible.  Please let me know of any other details that are going to be needed.

Thanks.

0
1 comment
Avatar
Fedor Rumyantsev

Hello,

Basing on this build log entry: 

java.lang.IllegalStateException: Could not find tools.jar. Please check that /usr/lib/jvm/java-8-openjdk-amd64 contains a valid JDK installation

I do suppose that JAVA_HOME on your agent environment is set to /usr/lib/jvm/java-8-openjdk-amd64. Could you please confirm if there is a valid installation under this path, with tools.jar present? 
If this path is being selected by accident and JAVA_HOME is pointed to a correct installation, please mind that gradle.properties may contain an override:

org.gradle.java.home

Please see the additional details on Gradle build environment configuration from Gradle documentation (https://docs.gradle.org/current/userguide/build_environment.html)

0

Please sign in to leave a comment.