🪟 Windows SetupPublic
Setting up your local development environment for Java on Windows.
Warning
- This guide is for local setup. If you are working on CSE, you do not need to follow this.
- It is recommended to setup development locally in-case you need to use it.
- This guide does not support ARM based Windows Machines.
1. Installing Java JDK 17 On Your Machine
Warning
It is important that you install exactly Java JDK version 17.x on your machine.
This is how we will be compiling and testing your code.
Ensure that you do not have younger or older versions of Java JDK on your machine. If you do, you will need to uninstall or setup your paths correctly.
You can check if you have a previous version of Java installed by opening a terminal and running the following command:
1.1. Adoptium Java JDK 17 Installation
Navigate to Latest Releases | Adoptium in your browser, and download the .msi
file for your architecture and Windows OS.
Tip
Warning
JDK
version, not JRE
.Open the .msi
file you downloaded and follow the prompts to install Java.
You can verify the installation succeeded by checking the version using the command:
You may need to close all terminals you have open, and open a new one for the command to work
The output should look like the following (doesn’t need to be identical. Most importantly needs to show Java 17)
2. Gradle 8.8 Installation
Warning
It is important you install exactly Gradle 8.8.
- Download the Gradle zip file from here.
- Create a new directory
C:\Gradle
with File Explorer.
You can choose to pick a different directory. In this case, replace all instances of
C:\Gradle
with your chosen directory.
- Unzip the contents of the Gradle zip file and copy the contents of the
gradle-8.8
folder into the directoryC:\Gradle

C:\Gradle folder contents after Step 3
- Search and open up
Edit the system environment variables
. There are two very similar options. Ensure you pick the matching name (highlighted red in the image below).

- Click on
Environment Variables
. This should open another pop-up.

- Under
System variables
, selectPath
and clickEdit
.

- Click New and add a new entry called
C:\Gradle\bin
. Then clickOK
to close the current pop-up, andOK
again to close the Environment Variables pop-up.

- Close all open terminals.
- Verify installation by opening a terminal (Powershell or Command Prompt) and running:
The following output is expected:
The most important things to note are Gradle 8.8
and JVM: 17.x.y
.
If some of your terminals are not detecting
gradle
(such as terminals inside VSCode), restart your computer and try again.
Last updated on