Nikky
01/27/2019, 7:16 PMCzar
01/27/2019, 7:23 PMorg.apache.tools.ant.util.JavaEnvUtils.getJavaHome()
Or directly System.getProperty("java.home")
Or this, to be on the safe side: System.getProperty("org.gradle.java.home") ?: System.getProperty("java.home")Nikky
01/27/2019, 8:28 PMNikky
01/27/2019, 8:30 PMorg.apache.tools.ant.util.JavaEnvUtils.getJdkExecutable("javac")sean
01/29/2019, 2:05 AMsean
01/29/2019, 2:07 AMjava.home system property to find the cacerts filesean
01/29/2019, 2:07 AMNikky
01/29/2019, 2:16 AMval javac = File(JavaEnvUtils.getJdkExecutable("javac"))
val jdkHome = javac.parentFile.parentFileNikky
01/29/2019, 2:16 AM