Skip to content

Commit e84576e

Browse files
committed
docs: Update JDK installation steps to use Java 25
1 parent 267d478 commit e84576e

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

development/building/prerequisites.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@
44

55
This page explains how to get the software you need to use on Linux or macOS for local development.
66

7-
* `java 21` package or newer
7+
* `Java 25` package or newer
88
* `git` installed
99
* `docker` installed
1010

11-
> Note: For contributing, you must have a github account to be able to raise PRs.
11+
> Note: For contributing, you must have a GitHub account to be able to raise PRs.
1212
1313
#### For Linux
1414

15-
1. Install `OpenJDK 21` package or newer:
15+
1. Install `OpenJDK 25` package or newer:
1616

1717
```bash
1818
sudo apt update
19-
sudo apt install openjdk-21-jdk
19+
sudo apt install openjdk-25-jdk
2020
```
2121

2222
* Check the java version using the command `java -version`.
2323

2424
```bash
25-
openjdk version "21.0.5" 2024-10-15
26-
OpenJDK Runtime Environment (build 21.0.5+8-Ubuntu-2ubuntu120.04)
27-
OpenJDK 64-Bit Server VM (build 21.0.5+8-Ubuntu-2ubuntu120.04, mixed mode, sharing)
25+
openjdk 25.0.1 2025-10-21
26+
OpenJDK Runtime Environment (build 25.0.1+8-27)
27+
OpenJDK 64-Bit Server VM (build 25.0.1+8-27, mixed mode, sharing)
2828
```
2929

30-
Note: In case OpenJDK 21 is not set as your default Java, run
30+
Note: In case OpenJDK 25 is not set as your default Java, run
3131

3232
```bash
3333
sudo update-alternatives --config java
@@ -43,11 +43,12 @@ Selection Path Priority Status
4343
2 /usr/lib/jvm/java-16-openjdk-amd64/bin/java 1051 manual mode
4444
3 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1021 manual mode
4545
4 /usr/lib/jvm/java-21-openjdk-amd64/bin/java 1001 manual mode
46+
5 /usr/lib/jvm/java-25-openjdk-amd64/bin/java 1001 manual mode
4647
4748
Press <enter> to keep the current choice[*], or type selection number:
4849
```
4950

50-
You can set it as the default by entering the selection number for it in the list and pressing Enter. For example, to set Java 21 as the default, you would enter "4" and press **Enter**.
51+
You can set it as the default by entering the selection number for it in the list and pressing Enter. For example, to set Java 25 as the default, you would enter `5` and press <kbd>Enter</kbd>.
5152

5253
2. Install `git`:
5354

@@ -83,10 +84,10 @@ sudo chmod 666 /var/run/docker.sock
8384
brew cask
8485
```
8586

86-
3. Install openjdk 21 via Homebrew:
87+
3. Install openjdk 25 via Homebrew:
8788

8889
```bash
89-
brew install openjdk@21
90+
brew install openjdk@25
9091
```
9192

9293
4. Verify Installation
@@ -95,22 +96,22 @@ brew install openjdk@21
9596
java -version
9697
```
9798

98-
Note: In case OpenJDK 21 is not set as your default Java, you can consider including it in your `$PATH` after installation
99+
Note: In case OpenJDK 25 is not set as your default Java, you can consider including it in your `$PATH` after installation
99100

100101
```bash
101-
export PATH="$(/usr/libexec/java_home -v 21)/bin:$PATH"
102-
export JAVA_HOME="$(/usr/libexec/java_home -v 21)"
102+
export PATH="$(/usr/libexec/java_home -v 25)/bin:$PATH"
103+
export JAVA_HOME="$(/usr/libexec/java_home -v 25)"
103104
```
104105

105-
If java\_home doesn't recognize homebrew installed java you can run below cmd to symlink brew installed java path to jvm
106+
If java\_home doesn't recognize homebrew installed java you can run below cmd to symlink brew installed Java path to jvm
106107

107108
```bash
108-
sudo ln -sfn $(brew --prefix openjdk@21)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-21.jdk
109+
sudo ln -sfn $(brew --prefix openjdk@21)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-25.jdk
109110
```
110111

111112
### Tips
112113

113-
Consider allocating not less than 4GB of memory for your docker. Otherwise, some apps within a stack (e.g. `kafbat-ui.yaml`) might crash.
114+
Consider allocating at least 4GB of memory for your docker. Otherwise, some apps within a stack (e.g. `kafbat-ui.yaml`) might crash.
114115

115116
To check how much memory is allocated to docker, use `docker info`.
116117

0 commit comments

Comments
 (0)