recordSource
public record JavaInstallation(
    int majorVersion,
    Path home,
    Path executable,
    boolean managed,
    String releaseName
)

Describes a resolved Java runtime.

The runtime may be the current JVM that is already running the launcher, or a managed installation downloaded on demand for a Minecraft version.

Record components

majorVersionint

The Java feature version, such as 17, 21, or 25

Accessor: majorVersion()
homePath

The runtime home directory

Accessor: home()
executablePath

The Java executable that should be launched

Accessor: executable()
managedboolean

Whether this runtime was downloaded and managed by JavaManager

Accessor: managed()
releaseNameString

The vendor release name for managed runtimes, or null for the current JVM

Accessor: releaseName()

Constructors

public JavaInstallation(
    int majorVersion,
    Path home,
    Path executable,
    boolean managed,
    String releaseName
)
Parameters
majorVersionint
homePath
executablePath
managedboolean
releaseNameString

Used by

Methods of other types that accept or return JavaInstallation.