# Installing Java JDK

To install Java JDK on your computer, first go to Oracle and head to the '**Downloads**' section.

It is ultimately up to you which one you wish to install, but for the purpose of this demonstration, I'll be installing **JDK 17**, specifically the **x64** Installer for **Windows**, but you can also download it for **Linux** and **MacOS**.

You may have to create an Oracle account to download the installer, but that's quick and easy.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1700235534074/cd958153-41a2-4c0c-8b63-4557cab6726d.png align="center")

Once you click next and choose where to save your files, it will take a minute to install and then you'll see this box which you'll hit 'close' on.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1700235694216/585ce497-f49f-41cc-ba39-1b38aee0ad93.png align="center")

Next, you need to choose the path, and you can do this by opening your **control** **panel**, going into **'Edit the system environment variables'** and choosing the **'Advanced'** tab.

Once in the **'Advanced'** tab, you need to click on '**Environment Variables'**, which will open up this window where you will then choose Path:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1700236265548/cadb6da6-760e-4ee9-acf4-393f873f86b4.png align="center")

This will open once you choose 'Path' and click '**edit'**.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1700236320256/fea44a14-4622-4f0d-9fa1-0198ace7bea4.png align="center")

As you can see there are multiple paths on my device, however, yours will have fewer paths.

Once there, you click **new** and type in the following:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1700236483210/109f157d-005b-4e5b-8cba-6ad6566c8285.png align="center")

Finally, go back to system variables again and click '**path'** - '**new'** where you will name the variable **JAVA\_HOME** and direct it to the bin folder again: **%JAVA\_HOME%\\bin**.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1700236868510/42f608ca-24b5-46b3-9298-30369f43b013.png align="center")

Once that's done, open the cmd prompt and type in java -version to see that you have Java installed.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1700236704317/3e5073e4-6486-43e2-9b4b-eff240a8eaae.png align="center")

Congratulations, you now have Java JDK 17 installed!
