Skip to content

Commit 9640b7d

Browse files
authored
add java home notes (#7)
1 parent 2771256 commit 9640b7d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Try different things and see what GitHub Copilot can do for you, like generating
1212
> If you are running this exercise in GitHub Codespaces, the java environment is already setup.
1313
1414
> If you are running this exercise in local environment, please make sure that:
15-
- JDK 18 and above is installed. If not installed already, please download from: https://www.oracle.com/au/java/technologies/downloads/
15+
- JDK 18 and above is installed. If not installed already, please download from: https://www.oracle.com/au/java/technologies/downloads/ (e.g. jdk-23_windows-x64_bin.msi)
1616
- The environment variable for 'JAVA_HOME' is set. If not, please do one of the following:
1717
- **Windows 7** – Right click My Computer and select Properties > Advanced
1818
- **Windows 8** – Go to Control Panel > System > Advanced System Settings
@@ -24,12 +24,14 @@ Try different things and see what GitHub Copilot can do for you, like generating
2424
or
2525
- *JRE_HOME* if you installed the JRE (Java Runtime Environment)
2626
- In the **Variable** Value field, enter your JDK or JRE installation path.
27-
![alt text](image-environment_variable.png)
27+
28+
![env var](image-environment_variable.png)
2829
- Click **OK** and **Apply** Changes as prompted
2930

3031
> You may need to close and re-open any command windows that were open before you made these changes, as there's no way to reload environment variables from an active command prompt. If the changes don't take effect after reopening the command window, restart Windows.
3132
32-
33+
> Tips: Run `$env:JAVA_Home` in PowerShell to check current `JAVA_Home`. You can also use `$env:JAVA_Home="C:\Program Files\Java\jdk-23"` to set current terminal to use the jdk path.
34+
![java home](image-java-home-env.png)
3335

3436
## Instructions
3537

image-java-home-env.png

20.8 KB
Loading

0 commit comments

Comments
 (0)