I'm using gradle 2.9, intellij and Win10 for spring development. In one particular project I encountered this error:
Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: /usr/local/java/jdk1.8.0_05
Neither solution 1 nor solution 2 work for me.
Finally I found my solution. In the project root I found gradle.properties
configure this java home
org.gradle.java.home=/usr/local/java/jdk1.8.0_05
I remove and build it properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With