Open any web browser and type "**java jdk**" in the search bar
2
Click on the **Download the Latest Java LTS Free** link which is from **oracle.com**
3
**JDK Development Kit 21.0.2 downloads** wizard will open, click on the **Windows** tab
4
Click on the x64 download link.<https://download.oracle.com/java/21/latest/jdk-21_windows-x64_bin.exe>
The installer for the Java JDK will start downloading automatically.
5
On the top right corner click on the Downloads widget, then click on the **jdk-21_windows x64_bin.exe**
6
**Welcome to the Installation Wizard for JAVA SE Development Kit 21.0.2** wizard will open, click on the **Next >** button
7
Choose the installation location for the Java JDK. It will default to a path on your SSD or HDD. Once selected, click on the **Next >** button
8
After installation is completed, click on the **Close** button
9
Go to Windows Applications wizard and type "**Environment Variables**" in the search bar
10
Click on the **Edit the system environment variables** option
11
**Environment Variables** wizard will open, click on the **Environment Variables...** button
12
Scroll to the **System variables** section and click on the **Path**, then click on the **Edit....** button
13
**Edit environment variable** wizard will open, click on the **New** button
14
To find your bin file path, open **File Explorer** and navigate to **C: \\** Then, go to the **Program Files** directory, locate the **Java** folder, and open the **jdk -21** folder. Inside, you'll find the **bin** folder.
15
Double click on the path to copy the **bin** folder path
16
Go back to the **Edit environment variable** wizard and paste the copied path, then click on the **OK** button
17
Open the Command Prompt and type the command "**java -version**", **java version "21.0.2" 2024-01-16 LTS** is displayed.
Congratulations! you have successfully installed JAVA JDK.