JavaRuntime (Gradle API 9.7.0)
Description: declaration: package: org.gradle.tooling.model.java, interface: JavaRuntime

# Interface JavaRuntime

public interface JavaRuntime
Represents a Java virtual machine installation.

Since:
  2.11

- ## Method Summary

  Modifier and Type
  Method
  Description
  `File`
  `getJavaHome()`
  The home directory of the Java runtime installation.
  `JavaVersion`
  `getJavaVersion()`
  The Java version of the Java runtime installation.

- ## Method Details

  - ### getJavaVersion

    JavaVersion getJavaVersion()
    The Java version of the Java runtime installation.
    Returns:
      The Java version. Never returns `null`.

  - ### getJavaHome

    File getJavaHome()
    The home directory of the Java runtime installation.
    Returns:
      The home directory. Never returns `null`.