Alibaba Dragonwell is Alibaba's internal OpenJDK implementation. It is optimized for online e-commerce, finance, and logistics applications that run on more than 100,000 servers. Alibaba Dragonwell powers these distributed Java applications and provides exceptional extensibility.
-
Alibaba Dragonwell offers two editions:
-
Standard Edition: Based on upstream OpenJDK, with enhancements such as bug fixes, security patches, and tooling support.
-
Extended Edition: Includes all the features of the Standard Edition and adds further optimizations for cloud environments. This edition is widely used in the Alibaba production environment.
-
-
Alibaba Dragonwell JDK is available in versions that support both the Linux and Windows operating systems.
-
Dragonwell 8
-
Dragonwell 11
-
Dragonwell 17 (Standard Edition only)
-
Dragonwell 21
-
Linux
If you are using Alibaba Cloud Linux 3, you can use the yum command to install. When you use yum, a symbolic link is created by default, and you do not need to set environment variables.
-
Dragonwell 8:
sudo yum install -y java-1.8.0-alibaba-dragonwell-devel -
Dragonwell 11:
sudo yum install -y java-11-alibaba-dragonwell-devel -
Dragonwell 17:
sudo yum install -y java-17-alibaba-dragonwell-devel -
Dragonwell 21:
sudo yum install -y java-21-alibaba-dragonwell-devel
For other Linux systems, follow the steps below.
-
Go to the Dragonwell official website. Select the appropriate options and click the download button to obtain the installation package, or right-click the button to copy the download link.
-
Region: China Mainland.
-
Edition: Standard Edition or Extended Edition.
-
JDK version: Dragonwell 8, 11, 17 (Standard Edition only), or 21.
-
System architecture: x86_64 or aarch64. To confirm your system architecture, run the
uname --machinecommand. -
Operating system: Linux.
-
-
Download the installation package.
NoteThis topic uses the
/usr/local/path as an example. If you use a different path, make sure to update it in the subsequent steps.-
If your instance has Internet access, run the following command to download the package. This example uses the Extended Edition of
Dragonwell 8for thex86_64architecture. For other versions or architectures, obtain the correct URL from the Dragonwell official website and replace the URL in the command.sudo wget -P /usr/local https://dragonwell.oss-cn-shanghai.aliyuncs.com/8.20.21/Alibaba_Dragonwell_Extended_8.20.21_x64_linux.tar.gz -
If your instance cannot access the public network, you can use Workbench to upload or download files.
-
-
Extract the Java package.
-
Switch to the target directory.
cd /usr/local/ -
Run the tar command to extract the Java package. Replace
<package>with the actual package file name. For example, if the package name isAlibaba_Dragonwell_Extended_8.20.21_x64_linux.tar.gz, the command issudo tar -zxvf Alibaba_Dragonwell_Extended_8.20.21_x64_linux.tar.gz.sudo tar -zxvf <package>
-
-
Navigate to the extracted directory.
-
Change to the directory where the Java package was extracted. Replace
<xxx>with the actual directory name. For example, if the extracted directory is nameddragonwell-8.20.21, the command iscd dragonwell-8.20.21.cd <xxx> -
Display the full path of the current directory.
sudo pwd
-
-
Set environment variables.
-
Add the Java installation directory to the
JAVA_HOMEenvironment variable. Replace<path>with the full path of the Java installation directory. For example, if the full path is/usr/local/dragonwell-8.20.21, the command isecho "export JAVA_HOME=/usr/local/dragonwell-8.20.21" | sudo tee -a /etc/profile.echo "export JAVA_HOME=<path>" | sudo tee -a /etc/profile -
Update the
PATHenvironment variable to include the path to Java executables.echo "export PATH=\$PATH:\$JAVA_HOME/bin" | sudo tee -a /etc/profile -
The changes to the environment variable take effect immediately.
source /etc/profile
-
-
Run the following command to verify the installation and view the version information.
java -version
Windows
-
On your Windows instance, open a browser and go to the Dragonwell official website. Select the appropriate options and download the installation package.
-
Region: China Mainland.
-
Edition: Standard Edition or Extended Edition.
-
JDK version: Dragonwell 8, 11, or 21.
-
System architecture: x86_64 or aarch64.
-
Operating system: Windows.
-
-
Go to the
Program Filesfolder on the C drive and locate the Java installation package. The following figure uses Dragonwell 8 as an example.NoteThis topic uses the
C:/Program Filespath as an example. If you use a different path, make sure to update it in the subsequent steps.
-
Extract the Java installation package and navigate to the extracted folder. Copy the absolute address from the address bar. The following figure uses Dragonwell 8 as an example.

-
Set environment variables.
-
Right-click This PC and select Properties.

-
On the About page, scroll down and click Advanced system settings.

-
Click Environment Variables.

-
In the System variables section, click New. In the New System Variable window, enter
JAVA_HOMEas the variable name and the absolute address that you copied as the variable value. Click OK.
-
In System variables, find and select Path, and then click Edit.

-
Add the following two paths.
%JAVA_HOME%\bin %JAVA_HOME%\jre\bin
-
Click OK twice to save the settings.

-
-
Press
Win+Rto open the Run dialog box, typecmd, and press Enter to open a command prompt window. Run the following command to verify the installation and view the version information.java -version





