# JavaToolchainInfo

{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/starlarkbuildapi/java/JavaToolchainStarlarkApiProviderApi.java" %} {% dynamic setvar version "8.0.0" %} {% dynamic setvar original_path "/rules/lib/providers/JavaToolchainInfo" %} {% include "_buttons.html" %} Provides access to information about the Java toolchain rule. Accessible as a 'java_toolchain' field on a Target struct.

## Members

- bootclasspath
- ijar
- jacocorunner
- java_runtime
- jvm_opt
- label
- proguard_allowlister
- single_jar
- source_version
- target_version
- tools

## bootclasspath

    depset JavaToolchainInfo.bootclasspath

The Java target bootclasspath entries. Corresponds to javac's -bootclasspath flag.

## ijar

    FilesToRunProvider JavaToolchainInfo.ijar

A FilesToRunProvider representing the ijar executable.

## jacocorunner

    FilesToRunProvider JavaToolchainInfo.jacocorunner

The jacocorunner used by the toolchain. May return `None`.

## java_runtime

    JavaRuntimeInfo JavaToolchainInfo.java_runtime

The java runtime information.

## jvm_opt

    depset JavaToolchainInfo.jvm_opt

The default options for the JVM running the java compiler and associated tools.

## label

    Label JavaToolchainInfo.label

The toolchain label.

## proguard_allowlister

    FilesToRunProvider JavaToolchainInfo.proguard_allowlister

Return the binary to validate proguard configuration May return `None`.

## single_jar

    FilesToRunProvider JavaToolchainInfo.single_jar

The SingleJar deploy jar.

## source_version

    string JavaToolchainInfo.source_version

The java source version.

## target_version

    string JavaToolchainInfo.target_version

The java target version.

## tools

    depset JavaToolchainInfo.tools

The compilation tools.