how to install java in windows 10
Today we are going to learn how to install java in windows 10 64 bits OS. Though we are using Windows 10 64 bits OS, these steps are basically same if you install JAVA in any versions of Windows Operating System.
Search on google jdk for windows 10 64 bits.
Then go to the oracle java download page and download windows x64 version. You have to accept terms and conditions before downloading.
It will start downloading. If you are using Google Chrome, just press CTRL+J to go to download page of chrome.
Now go to the folder where you have saved or downloaded jdk file and double click on that file.
Again press Next.
If you want to change destination folder where you want to install Java, then click on change otherwise click on Next
You have successfully installed Java. Click the Close button.
Now go to Command Prompt. Click on Windows Button and then write command prompt or cmd and click on it.
You will see like this.
Just write “java -version” without quotes and press enter. Your java version will be displayed.
Now write “javac -version” without the quotes and press enter.
You will get the below error. For specifying your java compiler path, follow the steps from 17.
Now go to your Java Compiler i.e, javac file folder. If you have not changed your java installation folder, it will be in C:\Program Files\Java\jdk [version]\bin folder. Copy that file location/path.
Now Right click on This PC or My Computer.
Click on Advanced System Settings from the left hand pane.
Click on the Advanced Tab, Then click on Environment Settings.
Now under the System Variables section, find Path and double click on it or select and click edit button.
Now add the path which you have copied in Step 17 and click OK button.
Now again go to command prompt and write “javac -version” without quotes and press enter.
There you go. It will show the Java Compiler version and you are all set to create your first java program.
So this was our topic on how to install java in windows 10. Please share with everyone.