How to install Java on Windows

This guide will guide you through the process of downloading and installing Java on Microsoft Windows.

  1. Visit the Java website and download the installer

    To install Java, you first need to download the installer program from Oracle.

    Visit the "Download Java" page: https://java.com/download

    Click the "Free Java Download" button.

    Screenshot of the Java download page

    You are then prompted to read and agree with the end user license agreement.

    Screenshot of the end user license agreement page

    Depending on which web browser you are using to download Java and depending on its configuration, you may be prompted to either Download, Save or Run the installer file.

    Screenshot showing Internet Explorer prompting you to Run or Save the installer

    If you are prompted to run the Java installer file from Oracle, it is ok to just click the Run button. You also may prefer to save it to your disk and then manually find and run the installer yourself.

  2. Run the installer

    Depending on your Windows Security Settings, you may be prompted to allow the Java Installer to modify files on your computer. This is an important safeguard to make sure you really want to let software you've downloaded from the internet make changes to your computer. Please make sure this is the correct installer file and then when you're satisfied that it is, click the "Yes" button.

    Screenshot showing the security prompt to run the installer

  3. Install Java

    You are now shown the Java installer program.

    You can optionally change the Java install destination folder (using the checkbox in the bottom left), however this is an advanced option and should only be used by users who have a specific need to configure Java. It is fine to ignore this option.

    When you have read and are ready to accept the license agreement, click the "Install" button.

    Screenshot of the 'Welcome to Java' installer program

    Java will now download and install itself.

    Screenshot of Java installing itself

    Congratulations, you have now installed Java.

    Click the 'Close' button and Java will reopen your web browser to verify itself

  4. Verify Java

    The Java installer will open your default web browser and prompt you to verify your Java installation.

    Chrome doesn't support Java

    Google Chrome no longer supports Java on websites. Fewer sites use Java these days and the NPAPI system that Java uses has often caused security risks on websites. You can read more about it in the official statements from Google and Oracle:

    If you try to use Chrome to verify your Java installation, you will get an error:

    The error message you get when you try to run Java applications in Chrome.

    You need to use a different browser (such as Safari or Firefox) which still supports Java.

    Typically, you will be prompted to allow the Java plugin to run. The following screenshot is taken from Internet Explorer.

    1. First, verify that it is the offical Java plugin which is requesting permission to run. At the time of the production of this guide, the plugin name is Java(tm) Plug-In SSV Helper and it is published by Oracle America, Inc.
    2. When you are satisfied it is the correct plugin, click the Enable button.
    3. Then click the red Verify Java version button on the Java website.

    How to verify Java using the Oracle application

    You are then prompted one more time by Java itself if you want to run this application. Pay attention to the warning it gives about granting unrestricted access to your computer. You should always be very careful when you run Java applications; make sure you only run applications from companies you trust.

    In particular, always look at the Publisher name.

    In this instance, we are talking about a Java application made by the company who creates Java ("Oracle America, Inc."); so it's probably pretty safe to run. When you are ready, click the "Run" button on the warning.

    The security prompt from Java itself

    After you allow this Java app to run, it will verify that you have Java installed and (provided that everything during the installation worked) show you a message to this effect.

    The final confirmation that Java was installed correctly.

The default configuration for Java is to automatically check for updates and install them when they are available. This helps to keep Java patched and your computer safer.

You can always check if Java is up to date by visiting the WhatIsMyBrowser.com homepage.

Looking for guides to install Java on other operating systems?

Here are some guides for other platforms like OS X.

Ads by Google