When you download Java in Windows 10 you are able to code and run java programs on your system. Though you can have multiple java versions installed on your system but it is recommended to install only the latest version of Java. In this section we will be discussing the steps to download Java on your Windows 10 system.
Steps to Download and Install Java in Windows 10:
Check For JAVA
To check whether your system has JAVA installed in it or not just type the command below in the Command Prompt.
if you don’t have Java in your system then this command won’t recognized.
Step 1: Just type ‘Download java for Windows 10’ in search box of your search engine and click on the link form oracle.com.
Step 2: On the website you will find the most recent version of JAVA at the top. At the time of this content the most recent version we have is Java SE 16.0.1. To download the Java Development Kit (JDK) click on ‘JDK Download’.
Step 3: Based on your operating system choose the installer. Like I have 64-bit operating system so I will download ‘jdk-16.0.1_windows-x64_bin.exe’ executable file of Windows x64 Installer.
Before downloading you have to accept the license agreement and then click on the Download.
Step 4: Locate where downloaded file is double click on it to execute it.
Step 5: Your system will alert you about the change that the JDK will make in your device. To allow the installation the click on ‘yes’.
Step 6: Now you can see the installation set up and to proceed further you have to just click on Next.
Step 7: In the next interface of the JDK setup, if you feel you can change the location of jdk files, to change the path of JDK file click on ‘Change’. Else just click on Next.
After successful set up just close the jdk set up. Now we will have to set up the JAVA_HOME variable. By doing this we are setting the path to all java command such as java, javac etc. so that they can be accessed from everywhere.
Step 8: Now open the Windows Settings and click on System.
Step 9: In System settings search for environment variables.
This will pop up a ‘System Properties’ dialog box and here under Advanced tab click on ‘Environment Variables’.
Step 10: Now in Environment Variables dialog box, under System variables click on New to add a new variable.
Step 11: In New System Variable box you have to enter the variable name as JAVA_HOME and in variable value you have to enter the path to your JDK directory.
Step 12: We also have to update the Path variable so select Path variable and click on Edit.
Step 13: To update a Path variable add a path to bin directory of JDK using the New button and then click OK.
Step 14: Now to verify that you have successfully installed the Java development kit on your system open the command prompt and again type the command
It will display the java version that you have installed.
So, this is how you can download the latest version of Java on your Window 10 operating system.