Skip to content

Commit 5d19bff

Browse files
committed
rewrite Windows sections to focus on manual installation
1 parent 146b0bd commit 5d19bff

File tree

1 file changed

+46
-18
lines changed

1 file changed

+46
-18
lines changed

BUILDING.md

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,35 +109,47 @@ Download and install Eclipse Temurin JDK versions 8, 11, 17 and 21, and GraalVM.
109109

110110
#### Windows
111111

112-
Use the `tooling/install-jdks-windows.ps1` script to download and install Eclipse Temurin JDK versions 8, 11, 17, and 21, and set the required environment variables.
112+
* Download and install JDK 8, 11, 17, and 21 [Eclipse Temurin releases](https://adoptium.net/temurin/releases/). Alternatively, if available, you can use `winget` or `scoop`:
113113

114-
> [!NOTE]
115-
> This scripts currently does _not_ install GraalVM due to license changes in October 2024 for GraalVM 17.0.13 and later.
114+
<details>
115+
<summary>Install JDKs using `winget`</summary>
116116

117-
<details>
118-
<summary>Manual installation</summary>
117+
```pwsh
118+
winget install --id EclipseAdoptium.Temurin.8.JDK
119+
winget install --id EclipseAdoptium.Temurin.11.JDK
120+
winget install --id EclipseAdoptium.Temurin.17.JDK
121+
winget install --id EclipseAdoptium.Temurin.21.JDK
122+
```
119123
120-
* To install the JDKs manually, download the installers from [Eclipse Temurin releases](https://adoptium.net/temurin/releases/) and or use `winget`:
124+
</details>
121125
122-
```
123-
winget install --id EclipseAdoptium.Temurin.8.JDK
124-
winget install --id EclipseAdoptium.Temurin.11.JDK
125-
winget install --id EclipseAdoptium.Temurin.17.JDK
126-
winget install --id EclipseAdoptium.Temurin.21.JDK
127-
```
128-
* Install GraalVM from [Oracle downloads](https://www.graalvm.org/downloads/). Note that GraalVM for JDK 17.0.13 and later are released under a different license and may be unavailable.
129-
* Install the GraalVM native image requirements for native builds by following [the GraalVM official documentation](https://www.graalvm.org/latest/docs/getting-started/windows/#prerequisites-for-native-image-on-windows).
126+
<details>
127+
<summary>Install JDKs using `scoop`</summary>
130128
131-
* To add the required environment variables, run the following PowerShell commands for each SDK version, replacing `<full-version>` with the full version number. For example, `C:\Program Files\Eclipse Adoptium\jdk-8.0.432.6-hotspot`.
132129
```pwsh
133-
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Eclipse Adoptium\jdk-8.0.432.6-hotspot", [EnvironmentVariableTarget]::User)
130+
scoop bucket add java
131+
132+
scoop install temurin8-jdk
133+
scoop install temurin11-jdk
134+
scoop install temurin17-jdk
135+
scoop install temurin21-jdk
136+
```
137+
138+
</details>
139+
140+
* To add the required environment variables, run the following PowerShell commands for each SDK version, replacing the path with the correct version installed:
141+
```pwsh
134142
[Environment]::SetEnvironmentVariable("JAVA_8_HOME", "C:\Program Files\Eclipse Adoptium\jdk-8.0.432.6-hotspot", [EnvironmentVariableTarget]::User)
135143
[Environment]::SetEnvironmentVariable("JAVA_11_HOME", "C:\Program Files\Eclipse Adoptium\jdk-11.0.25.9-hotspot", [EnvironmentVariableTarget]::User)
136144
[Environment]::SetEnvironmentVariable("JAVA_17_HOME", "C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot", [EnvironmentVariableTarget]::User)
137145
[Environment]::SetEnvironmentVariable("JAVA_21_HOME", "C:\Program Files\Eclipse Adoptium\jdk-21.0.5.11-hotspot", [EnvironmentVariableTarget]::User)
146+
147+
# JAVA_HOME = JAVA_8_HOME
148+
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Eclipse Adoptium\jdk-8.0.432.6-hotspot", [EnvironmentVariableTarget]::User)
138149
```
139150

140-
</details>
151+
> [!NOTE]
152+
> This scripts currently does _not_ install GraalVM due to license changes in October 2024 for GraalVM 17.0.13 and later.
141153
142154
### Install git
143155

@@ -154,11 +166,27 @@ apt-get install git
154166

155167
#### Windows
156168

169+
Download and install the installer from [the official website](https://git-scm.com/download/win).
170+
171+
Alternatively, you can use `winget` or `scoop`:
172+
173+
<details>
174+
<summary>Install git using winget</summary>
175+
157176
```pwsh
158177
winget install --id git.git
159178
```
160179

161-
Alternatively, download and install the installer from [the official website](https://git-scm.com/download/win).
180+
</details>
181+
182+
<details>
183+
<summary>Install git using scoop</summary>
184+
185+
```pwsh
186+
scoop install git
187+
```
188+
189+
</details>
162190

163191
### Install Docker Desktop
164192

0 commit comments

Comments
 (0)