Closed erik0704 closed 7 years ago
Typically, you should start by googling the error message could not find tools.jar
to see if someone else already faced/solved that problem. :-)
I found a fix that work for me by adding a line in the gradle.properties
file
org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_45
This is not the ideal solution I think. I had the same problem and I used this fix. But the extra line caused the build to fail tests on travis. I solved the issue by defining a JAVA_HOME environment variable in my computer. For mac, you have to define it in the config of the shell that you are using (you can check your shell from the command echo $SHELL). For windows, I am not sure but it can be easily googled.
This solution works but I also need to modifying the PATH environment variable to include %JAVA_HOME%\bin
I follow the set up instruction and able to get the message
BUILD SUCCESSFUL
after running the commandgradlew processResources
in the console.Using IntelliJ JUnit test runner I got all tests to passed
However when I run the Gradle test
gradlew clean allTests
I got a failureI'm not quite sure how to resolve this.