Hi everyone….
To download and setup jdk17 in Windows follow the below steps.
Step 1. download the jdk17 from internet.
Go to this site and download the ‘windows x64 installer’. when the file is downloaded, click on the file and install it.
Note: The JDK version should be 17.
Step 2. Install the jdk application.
Once the application is downloaded, double-click on the file, follow the instructions, and install the application.
Introduction screen of jdk
Click on the next button to select the installation directory
Destination folder
My JDK kit directory’s path is ‘C:\Program Files\Java\jdk-17’. You can also choose a different path by clicking on the change button. To proceed next click on the next button.
Note: Remember this path we will use this again.
Installing
Here, It is installed, wait for a few minutes, and after installing click on the close button.
Step 3. add jdk’s bin path in the system variable’s path.
Go to the ‘C:\Program Files\Java\jdk-17\bin” and copy the path inside the bin folder.
Find the ‘edit the system environment variable’ in your system (laptop) search.
Now, click on Environment Variables.
Here, you can see two sections one is user variables and another is System variables.
Select the path from the System variables and click on the edit button. it will open a panel. Paste the copied path and click OK button.
Step 4. add JAVA_HOME variable in the user variable enviroment.
Click on the New button and it will open a window to add the variable name and variable value.
add ‘JAVA_HOME’ in the variable name field and “C:\Program Files\Java\jdk-17\” in the Varibale value field. click on the OK button.
Note: Do not paste the path with a bin in the last.
Now, you are done
Step 5. Check, is jdk installed successfully or not
Open the command prompt and run the below command.
java -version
It will show the Java version.
if you are having any issues then restart the system and try again the above command in the command prompt.