Install Java Jdk 11 Windows 10

Posted on
  • How to Download and Install Java JDK 11 on Windows 10Do you want to know how to install the Java JDK 11 (Java SE Development Kit) on your Windows OS?
  • Download the ZIP windows distributions; Extract the downloaded zip file to your convenient directory. Example on windows: C:Avitools Now copy the AdoptOpenJDK bin path and set the AdoptOpenJDK bin path in the environment path; On windows follow the below steps to set the OpenJDK 11 classpath.
  • To uninstall Liberica JDK, simply remove this directory and unset related environmental variables. Apple MacOS Installing on Apple MacOS. Open the Download: Liberica JDK in your browser. Find a distribution variant that is more suitable for your needs and click the link “Download DMG”. After it is finished, verify the file by comparing its size on your drive and on the downloads page.

The latest release for Java SE 11 is Java SE 11.0.4 . Similar to Java 8, Java 11 is an LTS release. LTS stands for long term support, and basically this means that the release will be supported with updates and fixes for a considerable number of years.

This helps people developing in a commercial setting as they know that if they choose an LTS release that they will be able to rely on the support for that release, so helps with future planning. If I am writing software for my company, or im implementing a software package that relies on Java, its good to know that the LTS version will have continous support for 5 – 10 years from release, as it allows me plenty of time to plan the next upgrade if necessary.

Select the HotSpot implementation for Windows x64 and download the file. Extract the downloaded zip file into, for example, C: Program Files Java. It will create a jdk-11.0.3+7 (version number may vary) folder within the location that you select. Set the System Variables: Enter Windows Control Panel System Advanced System Settings. In this video, we are going to learn How To Install Java JDK 11 On Windows 10. How To Download and Install Java JDK 11 on Windows 10. The procedures are the.

New releases of Java often include the latest features, and performance improvements. But as upgrading existing software isnt always an easy task as it can require extensive testing, its good to know that is under your control, and that the version you are running will be available and supported for years to come.

The steps below show you how to download and install Java JDK 11 on Windows. You can also see my steps to download jdk 8, download jdk 9 and download jdk 12 here.

New features In Java 11

Downloading the JDK for Java 11

Navigate to and scroll down till you get to the Java SE 11 Section. Click on the Oracle JDK Download button.

Oracle JDK License Update

This will take you to the Java SE Development Kit 12 Downloads page. One thing to note here is that the Java licensing has changed since April 2019. Now to use java in a commercial setting (for example, if you are working in a company, government body or organisation of any kind) then you will need an Oracle license to use Oracle Java.

If you dont have the option to purchase a licence then you will need to use OpenJDK version of Java. OpenJDK is still a robust version of Java, but unlike the Oracle version it doesn’t come with commercial support. But if you are already using some of Oracles paid products in your organisation, such as Solaris OS or Oracle DB, check as you may get a license for Java included with those.

If you are using Java for personal use, such as learning Java or developing software for personal use at home, then the new license rules still allow you to use Oracle Java. Just make sure that if you are using Java at work, you are complying with the licence and using the appropriate version.

Oracle JDK Download

Scroll down the page until you see the versions available to download for Java SE Development Kit 11.0.4. For windows we have the choice of the auto installer executable or the zip file.

If you click on the executable for windows, you will be presented with a confirmation screen for accepting the Oracle License Agreement. Once you have read the license terms and are happy with them, click to accept the license then click to download.

If you havent already signed in, you will be presented with the Oracle login screen. Either login, or register and then login, and your download should start after that.

Installing The JDK

Once the executable installer has downloaded, click on it to begin the install. You may get windows asking you if you want to allow the installer to make changes, so click yes in this case as we know we are doing an install.

You will then get presented with the Java SE Development Kit 11.0.4 64 bit setup install window, so click next to continue

You will then see the Java SE Development Kit 11.0.4 64 bit custom setup screen, you just usually need to accept the defaults so click next to continue.

You will then see the installer splash screen with the progress bar as it installs the Java JDK and JRE.

Once the install is complete you will see the install complete confirmation screen. Click Close and at that point you are done with the installer.

Checking The Java Environment

To make java accessible from the command link easily, it should be on your system path. You can check this by starting a command prompt and checking. Right click the start button then click command prompt.

At the command prompt, type java -version, and it will show you which version of java is currently setup on your path, or an error if not.


The version shows 1.8.0_221-b11. Which shows that our java 11.0.4 has not been added to the system path. This isn’t necessarily a problem. We can modify our system path to point to the version of Java that we just installed, or we can follow the steps below to be able to use multiple versions of Java on the same machine by using batch files.

Installing Multiple Versions Of Java

If you want to have multiple version of java available on your computer for some reason, such as you have a piece of software that demands a specific version of java, you can install java just as we have done here, and then use a windows batch file to point to a specific version of java.

Or you may want to point to the jdk instead of the JRE, for instance if you have some specific software that may need to compile code, so as software for developers. in that case what we would do would be to create a windows batch file that would modify the path so that the version of java we require is run instead of what has already been defined on the path.

We create a windows batch file by opening notepad, and then saving that with a .bat extension. If we then run that we get the below.

This does look the same as before as we havent actually installed an additional version yet, but if we check the path by typing path at the command line we can see that the one we sit is there first now.


This article describes how to install the Microsoft Build of OpenJDK.

ZIP and TAR.GZ packages

For Windows, Linux, and macOS, we produce ZIP (Windows) and TAR.GZ (Linux/macOS) packages. To install, extract one of these packages in a folder of your choice, then set the JAVA_HOME environment variable to that folder.

Alternately, you can use native installers for your OS of choice, as described in the next section.

Native installers

Install Jre For Windows 10

For Windows, we produce an MSI installer with a graphical interface. For macOS, we produce a PKG installer with similar features. These installers will automatically make the JDK tools available in your PATH.

For Linux, we produce DEB and RPM packages to be used with apt and rpm.

The following sections provide instructions for these installers.

Install on Windows

To install on any version of Windows, you can use the MSI packages or the ZIP package. If you're on Windows 10, you can use the Windows Package Manager from your Windows Terminal.

To install with the Windows Package Manager, first install winget, and then open the Windows Terminal.

Next, use the following command to search for the Microsoft Build of OpenJDK packages:

You'll see output similar to the following:

You can now install the package by referencing the Id shown above, using the following command:

This command produces an output similar to the following:

Install on macOS

To install the latest version with Homebrew:

This command produces a output similar to the following:

To install other versions with Homebrew you need to tap the cask-versions repo first:

To install on macOS with the TAR.GZ package, just extract the file into a location. The JDK will be inside <location>/jdk-<version>/Contents/Home.

To install using the PKG installer, open the installer and follow the instructions. By default, the JDK will be installed at /Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home.

Install on Ubuntu 18.04+

To install on Ubuntu 18.04+, open a terminal and run the following commands:

After the repository is added, install the Microsoft Build of OpenJDK by running the following commands:

Install on Debian 9

To install on Debian 9, open a terminal and run the following commands:

After the repository is added, run the following commands:

Install on Debian 10

To install on Debian 10, open a terminal and run the following commands:

After the repository is added, run the following commands:

Install on CentOS 7 (RPM)

To install on CentOS 7, open a terminal and run the following command:

After the repository is added, run the following command:

Set Microsoft Build of OpenJDK as the default on Linux

If you have several versions of OpenJDK installed on your system, use the following command to set the Microsoft Build of OpenJDK as the default:

For Debian/Ubuntu:

For CentOS, you can use the command alternative.

Provide feedback on the Microsoft Build of OpenJDK

Send us your comments, thoughts, and ideas to help us improve the Microsoft Build of OpenJDK. Visit our OpenJDK discussions page on GitHub to send us your feedback.

Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.