api / org.gradle.jvm.toolchain / LocalJava

LocalJava

@Incubating interface LocalJava : Named

A local JDK, JRE or Java 9+ installation.

Functions

getPath

abstract fun getPath(): File

Returns the path to the local Java installation.

setPath

abstract fun setPath(path: File): Unit

Sets the path to the local Java installation.

Inherited Functions

getName

abstract fun getName(): String

The object's name.

Must be constant for the life of the object.