Package: org.gradle.tooling.model.java

## [Java] Interface JavaRuntime

- Represents a Java virtual machine installation.

  Since:
    2.11

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `File` | `getJavaHome()` The home directory of the Java runtime installation.
    `JavaVersion` | `getJavaVersion()` The Java version of the Java runtime installation.

- - ### Method Detail

    - #### public File getJavaHome()

      The home directory of the Java runtime installation.

      Returns:
        The home directory. Never returns `null`.

    - #### public JavaVersion getJavaVersion()

      The Java version of the Java runtime installation.

      Returns:
        The Java version. Never returns `null`.