You are on page 1of 5

How to Install Java 8

Step 1 : Double click the Setup file which downloaded then start the installation.

Step 2 : Make sure that you have gone through the updated License Agreement of Java. Now
click the Next Button to continue with the installation. The next screen shows options to select
optional features to be installed together. Leave the default options without making any change.
Step 3 : Now click the Next Button to start the installation.

Step 4 : The installer will also ask to choose the location of JRE
Step 5 : Click the Next Button to start the JRE installation.

Step 6 : At last, it shows the Success Screen after completing the installation.


Step 7 : Now open the Command Prompt and type the command java -version to confirm
whether it's installed successfully as shown in below.

If Java Version Not Shown - It will either show the message - java is not recognized as an
internal or external command or show the previously installed version.
In order to start using the JDK installed by us from the command prompt, we need to set
the environment variable. You can follow the below-mentioned steps to do so.

Right Click -> My Computer(This PC) -> Properties -> Advanced System Settings
The above steps will open the Windows settings panel as shown below.
.
Now click on Environment Variables, select Path under System Variables section and click on
Edit. We need to add the path of installed JDK to system Path.

Remove the path of previously installed JDK. Also, update JAVA_HOME in case it's already
set. Now click on New Button and add the path to JDK bin which is C:\Program Files\Java\
jdk1.8.0_241\bin in my case as shown below.

Now again open the console and test the Java version as shown below.

You might also like