Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: /usr/local/java/jdk1.8.0_05

Tags:

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.

like image 733
roconmachine Avatar asked Aug 18 '16 05:08

roconmachine


1 Answers

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.

like image 155
roconmachine Avatar answered Sep 29 '22 20:09

roconmachine