How To Install Java

HOW TO INSTALL JAVA (JDK AND JRE) ON YOUR SYSTEM


There are two methods by which we can install java on windows,
1.      First one is windows online
2.      And the other is windows offline
By windows online we mean that, if you have internet connection then you simply need to install windows online file
For windows offline, you need to download the exe file and then install JRE on your system after that it will automatically open the java verify link which informs you whether java is installed on your system or not, sometimes we need to restart the browser for checking whether java is installed on your system or not, if this doesn’t work you can manually check through command prompt
Open the command prompt, You can open it through start menu or by typing win+R and then type cmd and then ok, it will open the command prompt
Then type  java<space> -version
If it shows  you the version of java,  it means you have  java installed on your system,
If it says there is no internal or external command found then it means you haven’t installed JRE properly,
reason might  be the execution file is corrupt or some error has occurred while installing. You can download the file again and then install it properly.
Also you need to check the compatibility of your system, that whether the system is of 32 bit or 64 bit.  If it is 32 bit system and you are installing JRE of 64 bit, then it’s a big problem, so while downloading keep this thing in mind. This was all on how to install JRE on windows, and JRE is enough for those who wants to run java application.
But if you also want to compile your own programs then you need to install JDK on your system too. And likewise JRE we can install JDK  and, for checking whether JDK is installed properly or not you can find it by typing in command prompt jdk<space>-version.
Also before checking this, set the path for jdk by creating new environment variable, and define path over there. Let us start with installation

STEPS TO INSTALL JAVA

1.      Go to the link java.com
Link to java.com

2.      Click on Agree and start free download, this will instantly save an installation file on your system and when you install that file you need to have internet connection.
Java download button


Agree to terms and conditions

3.      If you don’t want to proceed with this, then you can see all java download options available.
See all java Downloads


4.      According to your windows compatibility you can download JRE executable file

Pick right java Download
5.      After saving the file on system double click the file and the installation will proceed

Install Java


6.      Now after installation when you  close the installation window it will directly open the java verify link
Installation complete message
7.      On clicking verify java version, it will check if JRE is installed on your system or not and after checking it will display the results.
 Verify java Version


8.      Now it’s  time to install JDK  if you want to compile java programs too.
JDK link


9.      After that click on download jdk

Download JDK

10.   Similar to JRE  we can install JDK.  And for checking if JDK is installed or not open  command prompt
11.   Type Win+r, it will open “RUN”
12.   Then type cmd and click OK, it will open the command prompt

Run cmd

13.   Type java –version for checking JRE version
14.    After this type javac –version for checking JDK version

Check JRE version



14.    After this type javac –version for checking JDK version
Check JDK version


15. But before checking if JDK is installed properly or not set the path for jdk
16. Go to computer properties>Advanced System Properties>Environment variables>new
computer properties
Environment Variables


17. Set the path for jdk
Set Path
And then  finally check if JDK is installed or not.

In this way you can install JAVA on windows OS

No comments:

Post a Comment