Skip to content

Commit 2771256

Browse files
sadat-insightSadat Mazumder
andauthored
added the environment var setting (#6)
Co-authored-by: Sadat Mazumder <Sadat.Mazumder@dwer.wa.gov.au>
1 parent 8dcd4df commit 2771256

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,31 @@ The goal is to create a REST API using Spring Boot and a corresponding Docker im
66
Follow the instructions below and try to use GitHub Copilot as much as possible.
77
Try different things and see what GitHub Copilot can do for you, like generating a Dockerfile or a class, add comments, etc.
88

9-
> Make sure GitHub Copilot is configure and enabled for the current laguage, just check the status bar on the bottom right corner of VS Code.
10-
11-
> If you are running this exercise in local environment, please make sure JDK 18 and above is installed.
9+
## Pre-requisites
10+
> Make sure GitHub Copilot is configured and enabled for the current laguage, just check the status bar on the bottom right corner of VS Code.
1211
1312
> If you are running this exercise in GitHub Codespaces, the java environment is already setup.
1413
14+
> 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/
16+
- The environment variable for 'JAVA_HOME' is set. If not, please do one of the following:
17+
- **Windows 7** – Right click My Computer and select Properties > Advanced
18+
- **Windows 8** – Go to Control Panel > System > Advanced System Settings
19+
- **Windows 10** – Search for Environment Variables then select Edit the system environment variables
20+
- Click the **Environment Variables** button.
21+
- Under **System Variables**, click **New**.
22+
- In the **Variable Name** field, enter either:
23+
- *JAVA_HOME* if you installed the JDK (Java Development Kit)
24+
or
25+
- *JRE_HOME* if you installed the JRE (Java Runtime Environment)
26+
- In the **Variable** Value field, enter your JDK or JRE installation path.
27+
![alt text](image-environment_variable.png)
28+
- Click **OK** and **Apply** Changes as prompted
29+
30+
> 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.
31+
32+
33+
1534
## Instructions
1635

1736
The `copilot-demo` folder contains the Maven project and Maven installer.

image-environment_variable.png

7.57 KB
Loading

0 commit comments

Comments
 (0)