Java 11 Install Windows

Posted on

Use a log file to verify that an installation succeeded. To create a log file describing the installation, append /L C: setup.log to the installation command and scroll to the end of the log file to verify the status of the installation. The following is an example of creating a log file: $ jre-10-windows-x64bin.exe /s /L C. Use a log file to verify that an installation succeeded. To create a log file describing the installation, append /L C: setup.log to the installation command and scroll to the end of the log file to verify the status of the installation. The following is an example of creating a log file: $ jre-10-windows-x64bin.exe /s /L C.

Resolution

Download OpenJDK 11

Oracle's OpenJDK JDK binary for Windows is available on release-specific pages of jdk.java.net as .zip archive.

Java 11 Install Windows
  • Navigate in Web Browser to: https://jdk.java.net/11/

Look for the builds section.

  • Click on the zip link right next to Windows/x64.

At the time of writing the latest Oracle OpenJDK release was version: 11.0.1.

  • Download the file

'openjdk-11.0.1_windows-x64_bin.zip': https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_windows-x64_bin.zip

  • Extract to C: drive

Select the ZIP archive file. Right-click and then click on the Extract All… menu item.

Select an extract destination for the JDK files.

In this example, we extract in C:jdk-11.0.1.

  • Setup

We need to set up an environment variable that will point to our JDK installation.

Click on the search button. Then type 'env' (without quotes).

Note: On Windows 7 click on the Windows button.

Click on the 'Edit system environment variables' shortcut.

Wait for the environment variables window to open.

Click on 'New…'.

Enter 'JAVA_HOME' as variable name. Enter the [JAVA_INSTALL_DIR] as variable value.

In this tutorial, the Java installation directory is C:jdk-11.0.1.

Click OK.

  • Configure the PATH environment variable

Select the 'Path' variable. Click on 'Edit…'.

Click on New and type '%JAVA_HOME%bin' as shown below.

Click OK.

Click OK once more to close the environment variables window.

If a Path variable does not exist you need to create it. Use 'Path' as variable name and '%JAVA_HOME%bin' as variable value.

Add the '%JAVA_HOME%bin' and use the 'Move Up' button.

Note: On Windows 7 you cannot add extra values for an existing Path variable. You need to append ';%JAVA_HOME%bin' at the end of the variable value instead.

  • Test

Click on the search button. Then type 'cmd' (without quotes).

Click on the Command Prompt shortcut.

Java 11 Openjdk Install Windows

Wait for the command prompt to open.

Type 'java -version' and press ENTER.

Openjdk 11 Windows

The above command prints the installed OpenJDK version: '11.0.1'.