Skip to content

Java 11 Installation

These instructions are for downloading and installing the Java 11 release from the Adopt Open JDK web site.

If you already have Java 11 (or later) installed, you can check that it's working by using the instructions below.

Validate Installation

To check your installation, at a command prompt/terminal, type the following

java -version

If all is well, you'll see something like:

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Make sure that the displayed Java version is 11 or later.

To make sure the Java compiler (javac) is also working, type the following:

javac -version

Should result in something like:

javac 1.8.0_181

Again, ensure that the version displayed is 11 or later.

If any of the above versions display as 1.8.0 (or earlier!), then follow the instructions below to install Java 11.

Download Installer

  1. Go to
  2. See below for instructions for your machine/operating system.

Install on Mac OS X

  1. Open a terminal and type the following commands to verify it's installed correctly:
  2. javac -version
  3. java -version

    Homebrew

    If you have Homebrew installed, you can install Java using brew cask install java8

Install on Windows

  1. Choose the Windows x64 (not x86) file named jdk-8u201-windows-x64.exe
  2. Run the file, accepting all defaults from the installer
  3. Open up the system environment variables dialog and add the variable JAVA_HOME with the value C:\Program Files\Java\jdk1.8.0_181 (or wherever the JDK was installed if you selected a different location)
  4. Edit the system environment variable and append to the end: ;%JAVA_HOME%\bin
  5. Open a command prompt and type the following commands to verify it's installed correctly:
  6. javac -version
  7. java -version

Install on Linux

  1. Choose the rpm or tar.gz file as appropriate for your distribution
  2. For the tar.gz format:
  3. Untar the file using tar -xvf <jdk-8u201-linux-x64.tar.gz> -C <destination-directory>
  4. export JAVA_HOME=<destination-directory>/jdk1.8.0_201
  5. Append to the PATH :$JAVA_HOME/bin
  6. Open a terminal and type the following commands to verify it's installed correctly:
  7. javac -version
  8. java -version