Skip to content

Commit

Permalink
Mention Ubuntu 22.04, simplify JDK install steps
Browse files Browse the repository at this point in the history
- Hopefully stating that Ubuntu 22.04 is supported isn't controversial since this is the latest Ubuntu LTS release
- Also updated the JDK install instructions to use `default-jdk` which will install the default JDK for whatever Debian/Ubuntu version the user is on, this simplifies these instructions and should streamline future maintenance as well

Closes #18826.

PiperOrigin-RevId: 547770011
Change-Id: I68d7f4b1f942cfafec15b6f725a7561fe8425bfc
  • Loading branch information
Jason Mobarak authored and copybara-github committed Jul 13, 2023
1 parent 89aef43 commit 51e10d1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions site/en/install/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if needed as a backup option (for example, if you don't have admin access).

Supported Ubuntu Linux platforms:

* 22.04 (LTS)
* 20.04 (LTS)
* 18.04 (LTS)

Expand Down Expand Up @@ -91,11 +92,7 @@ install any specific version of Java.
However, if you want to build Java code using Bazel, you have to install a JDK.

```posix-terminal
# Ubuntu 16.04 (LTS) uses OpenJDK 8 by default:
sudo apt install openjdk-8-jdk
# Ubuntu 18.04 (LTS) uses OpenJDK 11 by default:
sudo apt install openjdk-11-jdk
sudo apt install default-jdk
```

## Using the binary installer {:#binary-installer}
Expand All @@ -120,11 +117,7 @@ sudo apt install g++ unzip zip
If you want to build Java code using Bazel, install a JDK:

```posix-terminal
# Ubuntu 16.04 (LTS) uses OpenJDK 8 by default:
sudo apt-get install openjdk-8-jdk
# Ubuntu 18.04 (LTS) uses OpenJDK 11 by default:
sudo apt-get install openjdk-11-jdk
sudo apt-get install default-jdk
```

### Step 2: Run the installer {:#run-installer}
Expand Down

0 comments on commit 51e10d1

Please sign in to comment.