Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Install the Java Developer Kit (JDK) for Ionic


    In this lesson, we install the Java Developer Kit (JDK). The JDK contains the Java Runtime Environment (JRE) and all the tools necessary to compile Java applications. This is necessary to compile and run Java, which in turn is necessary to run android.



    Become a Member to view code

    You must be a Pro Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    orLog In




    In this lesson, we are going to learn how to install Java on Windows. We will start out by navigating to Once we are on this site, we're going to click "Downloads" and then click "Java for developers."

    We will click on the Java platform button. From here, we will accept the license agreement and then we are going to download the Windows installer for the X64 platform because that is the architecture that my computer is on. You may be on X86.

    From here, we are going to run the installer and we're just going to accept the defaults. I click next and we are going to let this run. We're going to go with the default destination folder. We are installing the Java Runtime. This will take just a moment. Once this is completed, we can click "close" and let's hop into a command prompt and run Java. We'll just type Java into the command line and you can see here that we have all these different commands that we can actually use.

    This is a good time to talk about environment variables. There are a few different ways to set environment variables, but the way that we are going to do it over the course of this series we're going to start by going to this PC. We'll click on "System properties" then "Advanced system settings." From here "Environment variables and now you can create user variables and system variables.

    If we go down to path, we can see that we actually have Java in our path already. This is how we are able to run Java from the command line. This completes our lesson on how to install Java on Windows.