Install the JDK on Windows
This topic explains how to install the Java Development Kit (JDK) on Windows.
Why install the JDK
The Java Development Kit (JDK) is a software development kit for creating Java applications. As a key component of the Java development environment, it provides the core features to compile, run, and access Java standard libraries.
Procedure
-
Go to the Oracle website. In the top navigation bar, choose Products > Java.
-
In the upper-right corner, click Download Java.
-
Click the Java archive tab.
-
Select the JDK version to download. The Alibaba Cloud SDK runtime environment requires JDK 8 or later. In this example, click Java SE 8 (8u211 and later).
-
Select the Windows x64 Installer for your operating system, and click jdk-8u401-windows-x64.exe to download the file.
ImportantYou must sign in with an Oracle account to download the JDK. If you do not have an account, you can create one for free.
-
Double-click the downloaded JDK installer (jdk-8u401-windows-x64.exe) and follow the installation wizard to complete the installation.
ImportantIf the JDK is already installed, skip this step. To reinstall, first uninstall the existing version.
-
Verify the installation in Command Prompt.
Press
Win + Rto open the Run dialog box, typecmd, and then press Enter to open Command Prompt. Run thejava -versioncommand. A successful installation returns output similar to the following:C:\xxx>java -version java version "1.8.0_401" Java(TM) SE Runtime Environment (build 1.8.0_401-b10) Java HotSpot(TM) 64-Bit Server VM (build 25.401-b10, mixed mode)