Skip to content

Commit

Permalink
[7.2.0] Update compile-source.md with JDK21 requirements. (bazelbuild…
Browse files Browse the repository at this point in the history
…#22023)

Fixes bazelbuild#21821.

PiperOrigin-RevId: 625316799
Change-Id: I2691b0304a80af483d2630491064371783f65422

Commit
bazelbuild@d1cecc8

Co-authored-by: Googler <tanzhengwei@google.com>
  • Loading branch information
bazel-io and zhengwei143 authored Apr 16, 2024
1 parent aec8c85 commit e35f13b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions site/en/install/compile-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ For instructions for Windows, see [Bootstrap Bazel on Windows](#bootstrap-window

* **C++ build toolchain**

* **JDK.** Version 11 is required.
* **JDK.** Version 21 is required.

* **Python**. Versions 2 and 3 are supported, installing one of them is
enough.
Expand All @@ -200,7 +200,7 @@ For example on Ubuntu Linux you can install these requirements using the
following command:

```sh
sudo apt-get install build-essential openjdk-11-jdk python zip unzip
sudo apt-get install build-essential openjdk-21-jdk python zip unzip
```

#### 2.2. Bootstrap Bazel on Unix {:#bootstrap-unix}
Expand Down Expand Up @@ -239,11 +239,11 @@ For instructions for Unix-like systems, see
of Visual Studio 2015 or newer, or by installing the latest [Build Tools
for Visual Studio 2017](https://aka.ms/BuildTools).

* **JDK.** Version 11 is required.
* **JDK.** Version 21 is required.

* **Python**. Versions 2 and 3 are supported, installing one of them is
enough. You need the Windows-native version (downloadable from
[https://www.python.org](https://www.python.org)). Versions installed via
[https://www.python.org](https://www.python.org)). Versions installed via
pacman in MSYS2 will not work.

#### 2.2. Bootstrap Bazel on Windows {:#bootstrap-windows}
Expand All @@ -268,14 +268,14 @@ For instructions for Unix-like systems, see
export BAZEL_VS="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools"
export BAZEL_SH="$(cygpath -m $(realpath $(which bash)))"
export PATH="/c/python27:$PATH"
export JAVA_HOME="C:/Program Files/Java/jdk1.8.0_112"
export JAVA_HOME="C:/Program Files/Java/jdk-21"

or (using BAZEL\_V<b>C</b>):

export BAZEL_VC="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC"
export BAZEL_SH="$(cygpath -m $(realpath $(which bash)))"
export PATH="/c/python27:$PATH"
export JAVA_HOME="C:/Program Files/Java/jdk1.8.0_112"
export JAVA_HOME="C:/Program Files/Java/jdk-21"

3. `cd` to the directory where you unpacked the distribution archive.

Expand Down

0 comments on commit e35f13b

Please sign in to comment.