Skip to content

Commit ce2679f

Browse files
authored
Update setup documentation for Java 25 (#9451)
* Update setup documentation for Java 25 * Add note to use EA OpenJDK for now
1 parent de79e08 commit ce2679f

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

BUILDING.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Your output should look something like the following:
3434
✅ JAVA_11_HOME is set to /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home.
3535
✅ JAVA_17_HOME is set to /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home.
3636
✅ JAVA_21_HOME is set to /Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home.
37-
JAVA_24_HOME is set to /Library/Java/JavaVirtualMachines/zulu-24.jdk/Contents/Home.
37+
JAVA_25_HOME is set to /Library/Java/JavaVirtualMachines/zulu-25.jdk/Contents/Home.
3838
✅ JAVA_GRAALVM17_HOME is set to /Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.3.1/Contents/Home.
3939
ℹ️ Checking git configuration:
4040
✅ The git command line is installed.
@@ -52,16 +52,19 @@ If there is any issue with your output, check the requirements above and use the
5252

5353
Requirements to build the full project:
5454

55-
* The JDK versions 8, 11, 17, 21, and 24 must be installed.
56-
* The `JAVA_8_HOME`, `JAVA_11_HOME`, `JAVA_17_HOME`, `JAVA_21_HOME`, `JAVA_24_HOME`, and `JAVA_GRAALVM17_HOME` must point to their respective JDK location.
55+
* The JDK versions 8, 11, 17, 21, and 25 must be installed.
56+
* The `JAVA_8_HOME`, `JAVA_11_HOME`, `JAVA_17_HOME`, `JAVA_21_HOME`, `JAVA_25_HOME`, and `JAVA_GRAALVM17_HOME` must point to their respective JDK location.
5757
* The JDK 8 `bin` directory must be the only JDK on the PATH (e.g. `$JAVA_8_HOME/bin`).
5858
* The `JAVA_HOME` environment variable may be unset. If set, it must point to the JDK 8 location (same as `JAVA_8_HOME`).
5959
* The `git` command line must be installed.
6060
* A container runtime environment must be available to run all tests (e.g. Docker Desktop).
6161

6262
### Install the required JDKs
6363

64-
Download and install JDK versions 8, 11, 17, 21 and 24, and GraalVM 17 for your OS.
64+
Download and install JDK versions 8, 11, 17, 21 and 25, and GraalVM 17 for your OS.
65+
66+
> [!NOTE]
67+
> While Temurin JDK 25 from [Eclipse Temurin releases](https://adoptium.net/temurin/releases/) has not been released, please download the OpenJDK EA version at [this link](https://jdk.java.net/25/). Add the required environment variable using an `export` command along the lines of `export JAVA_25_HOME=/Library/Java/JavaVirtualMachines/jdk-25.jdk/Contents/Home`. Then, confirm that this was set properly by executing `echo $JAVA_25_HOME`.
6568
6669
#### macOS
6770

@@ -85,7 +88,7 @@ Download and install JDK versions 8, 11, 17, 21 and 24, and GraalVM 17 for your
8588
export JAVA_11_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
8689
export JAVA_17_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home
8790
export JAVA_21_HOME=/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home
88-
export JAVA_24_HOME=/Library/Java/JavaVirtualMachines/zulu-24.jdk/Contents/Home
91+
export JAVA_25_HOME=/Library/Java/JavaVirtualMachines/zulu-25.jdk/Contents/Home
8992
export JAVA_GRAALVM17_HOME=/Library/Java/JavaVirtualMachines/graalvm-<current version of graalvm>/Contents/Home
9093
export JAVA_HOME=$JAVA_8_HOME
9194
```
@@ -101,23 +104,23 @@ Download and install JDK versions 8, 11, 17, 21 and 24, and GraalVM 17 for your
101104
102105
#### Linux
103106

104-
* Download and extract JDK 8, 11, 17, 21, and 24 from [Eclipse Temurin releases](https://adoptium.net/temurin/releases/) and GraalVM 17 from [Oracle downloads](https://www.graalvm.org/downloads/).
107+
* Download and extract JDK 8, 11, 17, 21, and 25 from [Eclipse Temurin releases](https://adoptium.net/temurin/releases/) and GraalVM 17 from [Oracle downloads](https://www.graalvm.org/downloads/).
105108
* Install the GraalVM native image requirements for native builds by following [the GraalVM official documentation](https://www.graalvm.org/latest/reference-manual/native-image/#prerequisites).
106109
* Add the required environment variables to your shell using the `export` command. You can permanently install the environment variables by appending the `export` commands into your shell configuration file `~/.zshrc` or `~/.bashrc` or other.
107110
```shell
108111
export JAVA_8_HOME=/<path to extracted archive>/jdk8u<current version of JDK 8>
109112
export JAVA_11_HOME=/<path to extracted archive>/jdk-11.<current version of JDK 11>
110113
export JAVA_17_HOME=/<path to extracted archive>/jdk-17.<current version of JDK 17>
111114
export JAVA_21_HOME=/<path to extracted archive>/jdk-21.<current version of JDK 21>
112-
export JAVA_24_HOME=/<path to extracted archive>/jdk-24.<current version of JDK 24>
115+
export JAVA_25_HOME=/<path to extracted archive>/jdk-25.<current version of JDK 25>
113116
export JAVA_GRAALVM17_HOME=/<path to extracted archive>/graalvm-jdk-17.<current version of graalvm>/Contents/Home
114117
export JAVA_HOME=$JAVA_8_HOME
115118
```
116119
* Restart your shell after applying the changes if you appended the commands to your shell configuration file.
117120

118121
#### Windows
119122

120-
* Download and install JDK 8, 11, 17, 21, and 24 [Eclipse Temurin releases](https://adoptium.net/temurin/releases/).
123+
* Download and install JDK 8, 11, 17, 21, and 25 [Eclipse Temurin releases](https://adoptium.net/temurin/releases/).
121124

122125
<details>
123126
<summary>Alternatively, install JDKs using winget or scoop. (click here to expand)</summary>
@@ -127,7 +130,7 @@ Download and install JDK versions 8, 11, 17, 21 and 24, and GraalVM 17 for your
127130
winget install --id EclipseAdoptium.Temurin.11.JDK
128131
winget install --id EclipseAdoptium.Temurin.17.JDK
129132
winget install --id EclipseAdoptium.Temurin.21.JDK
130-
winget install --id EclipseAdoptium.Temurin.24.JDK
133+
winget install --id EclipseAdoptium.Temurin.25.JDK
131134
```
132135
133136
```pwsh
@@ -136,7 +139,7 @@ Download and install JDK versions 8, 11, 17, 21 and 24, and GraalVM 17 for your
136139
scoop install temurin11-jdk
137140
scoop install temurin17-jdk
138141
scoop install temurin21-jdk
139-
scoop install temurin24-jdk
142+
scoop install temurin25-jdk
140143
```
141144

142145
</details>
@@ -147,7 +150,7 @@ Download and install JDK versions 8, 11, 17, 21 and 24, and GraalVM 17 for your
147150
[Environment]::SetEnvironmentVariable("JAVA_11_HOME", "C:\Program Files\Eclipse Adoptium\jdk-11.0.25.9-hotspot", [EnvironmentVariableTarget]::User)
148151
[Environment]::SetEnvironmentVariable("JAVA_17_HOME", "C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot", [EnvironmentVariableTarget]::User)
149152
[Environment]::SetEnvironmentVariable("JAVA_21_HOME", "C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot", [EnvironmentVariableTarget]::User)
150-
[Environment]::SetEnvironmentVariable("JAVA_24_HOME", "C:\Program Files\Eclipse Adoptium\jdk-24.0.1.9-hotspot", [EnvironmentVariableTarget]::User)
153+
[Environment]::SetEnvironmentVariable("JAVA_25_HOME", "C:\Program Files\Eclipse Adoptium\jdk-25.0.1.9-hotspot", [EnvironmentVariableTarget]::User)
151154
152155
# JAVA_HOME = JAVA_8_HOME
153156
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Eclipse Adoptium\jdk-8.0.432.6-hotspot", [EnvironmentVariableTarget]::User)

setup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ TestJvm 'JAVA_8_HOME' '1.8'
5050
TestJvm 'JAVA_11_HOME' '11'
5151
TestJvm 'JAVA_17_HOME' '17'
5252
TestJvm 'JAVA_21_HOME' '21'
53-
TestJvm 'JAVA_24_HOME' '24'
53+
TestJvm 'JAVA_25_HOME' '25'
5454
# GraalVM cannot currently be installed due to license change in October 2024 for GraalVM 17.0.13 and later.
5555
# TestJvm 'JAVA_GRAALVM17_HOME' '17'
5656

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ check-jvm "JAVA_8_HOME" "1.8"
3636
check-jvm "JAVA_11_HOME" "11"
3737
check-jvm "JAVA_17_HOME" "17"
3838
check-jvm "JAVA_21_HOME" "21"
39-
check-jvm "JAVA_24_HOME" "24"
39+
check-jvm "JAVA_25_HOME" "25"
4040
check-jvm "JAVA_GRAALVM17_HOME" "17"
4141

4242

0 commit comments

Comments
 (0)