This lesson is for PRO members.

Unlock this lesson NOW!
Already subscribed? sign in

Install the Java Developer Kit (JDK) for Ionic

2:27 Angular 1.x lesson by

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.


egghead.io comment guidelines

Avatar
egghead.io

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.

Avatar
James

Was this video intended to go before the Apache Ant section? Ant requires the java runtime.

In reply to egghead.io

In this lesson, we are going to learn how to install Java on Windows. We will start out by navigating to Oracle.com. 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.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?