diff --git a/site/en/docs/bazel-and-java.md b/site/en/docs/bazel-and-java.md index b75afa3dd06ce0..2c87ff5b0ac942 100644 --- a/site/en/docs/bazel-and-java.md +++ b/site/en/docs/bazel-and-java.md @@ -242,16 +242,16 @@ Example toolchain configuration: ```python load( "@bazel_tools//tools/jdk:default_java_toolchain.bzl", - "default_java_toolchain", "DEFAULT_TOOLCHAIN_CONFIGURATION", "JDK9_JVM_OPTS", "DEFAULT_JAVACOPTS" + "default_java_toolchain", "DEFAULT_TOOLCHAIN_CONFIGURATION", "BASE_JDK9_JVM_OPTS", "DEFAULT_JAVACOPTS" ) default_java_toolchain( name = "repository_default_toolchain", - configuration = DEFAULT_TOOLCHAIN_CONFIGURATION, # One of predefined configurations - # Other parameters are from java_toolchain rule: - java_runtime = "//tools/jdk:remote_jdk11", # JDK to use for compilation and toolchain's tools execution - jvm_opts = JDK9_JVM_OPTS + ["--enable_preview"], # Additional JDK options - javacopts = DEFAULT_JAVACOPTS + ["--enable_preview"], # Additional javac options + configuration = DEFAULT_TOOLCHAIN_CONFIGURATION, # One of predefined configurations + # Other parameters are from java_toolchain rule: + java_runtime = "@bazel_tools///tools/jdk:remote_jdk11", # JDK to use for compilation and toolchain's tools execution + jvm_opts = BASE_JDK9_JVM_OPTS + ["--enable_preview"], # Additional JDK options + javacopts = DEFAULT_JAVACOPTS + ["--enable_preview"], # Additional javac options source_version = "9", ) ```