If you are new to java programming then this is the first step you need to perform.
How to Download and Install Java in Windows 10
Here are the steps to install Java on Windows 10:
Step 1. Download Java for Windows 10
To begin, visit this site to download java installation files. After that, click on the download link for Windows 10 and save the file.
Note: If you are trying to install Java 8 or earlier, then you need to know whether your Windows 10 is 32-bit or 64-bit. If your Windows 10 is 64-bit OS then download Windows x64 exe file, else download Windows x86 exe file.
To check your Windows version, go to Settings > System Settings > About. Under Device specifications, you will see various information about your device including System Type (32/64 bit), Device ID/name, installed ram, processor specs, Product ID.
Step 2. Install Java For Windows 10
Run the downloaded java installer executable file. To do that, double click on it and follow the steps. Most of the time you don’t need to select anything and go with the default selection.
Step 3. Check Java on Windows 10 Version
Lastly, you have to check if java is installed properly or not. To do that, you can use java -version command in command prompt.
Navigate to System Properties (Right Click on This PC and select Properties) > Advanced > Environment Variables.
In the popup window, go to System variables section, click on New button and add a variable with the following details:
Value: C:\Program Files\Java\jdk1.6.0_25
After that, edit the Path variable already present there. Select the Path variable and click on Edit button. In the popup window value section, navigate to the end and add the following
Your setup is done. Now you can check it by running command java – version in command prompt.
Note: In Java 9 and Windows 10, you don’t need to do these manually. Java installer takes care of that and you can check environment variable Path value. You don’t need to set the JAVA_HOME variable.
Step 4. Download and Install Java IDE
If you want to get things done easily, you should install either Eclipse, NetBeans IDE or Intellij Idea that helps a lot in development of java programs. Just download and install it with executable file, they are straight forward.
Hope something helps you. Let me know if you face any problems in setting up the environment.