Alibaba Dragonwell is Alibaba's OpenJDK implementation, optimized for large-scale distributed Java applications.
-
Alibaba Dragonwell has two editions:
-
Standard Edition: Based on upstream OpenJDK with bug fixes, security patches, and tooling enhancements.
-
Extended Edition: Includes all Standard Edition features plus cloud-specific optimizations. Widely used in Alibaba's production environment.
-
-
Alibaba Dragonwell JDK supports Linux and Windows in the following versions:
-
Dragonwell 8
-
Dragonwell 11
-
Dragonwell 17 (Standard Edition only)
-
Dragonwell 21
-
Linux
On Alibaba Cloud Linux 3, use yum to install. yum creates a symbolic link by default, so no environment variables are needed.
-
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 distributions, follow the steps below.
-
Go to the Dragonwell website. Select the options below and click the download button, or right-click it to copy the download link.
-
Region: United States.
-
Edition: Standard or Extended.
-
JDK version: Dragonwell 8, 11, 17 (Standard Edition only), or 21.
-
System architecture: x86_64 or aarch64. To check, run
uname --machine. -
Operating system: Linux.
-
-
Download the package.
NoteThis topic uses
/usr/local/as the example path. If you use a different path, update it in subsequent steps.-
If your instance has Internet access, download the package directly. This example uses
Dragonwell 8Extended Edition forx86_64. For other versions or architectures, get the URL from the Dragonwell website and replace it 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 has no Internet access, use Workbench to upload or download files.
-
-
Extract the package.
-
Go to the target directory.
cd /usr/local/ -
Extract the package. Replace
<package>with the actual file name. For example, if the file isAlibaba_Dragonwell_Extended_8.20.21_x64_linux.tar.gz, runsudo tar -zxvf Alibaba_Dragonwell_Extended_8.20.21_x64_linux.tar.gz.sudo tar -zxvf <package>
-
-
Get the extracted directory path.
-
Go to the extracted directory. Replace
<xxx>with the actual directory name. For example, if the directory isdragonwell-8.20.21, runcd dragonwell-8.20.21.cd <xxx> -
Print the full path of the current directory.
sudo pwd
-
-
Set environment variables.
-
Set
JAVA_HOME. Replace<path>with the full path from the previous step. For example, if the path is/usr/local/dragonwell-8.20.21, runecho "export JAVA_HOME=/usr/local/dragonwell-8.20.21" | sudo tee -a /etc/profile.echo "export JAVA_HOME=<path>" | sudo tee -a /etc/profile -
Add Java to
PATH.echo "export PATH=\$PATH:\$JAVA_HOME/bin" | sudo tee -a /etc/profile -
Apply the changes.
source /etc/profile
-
-
Verify the installation.
java -versionIf the installation is successful, the output is similar to the following:
[ecs-xxx-user@iZxxx ~]$ java -version openjdk version "1.8.0_422" OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition 8.20.21) (build 1.8.0_422-b01) OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition 8.20.21) (build 25.422-b01, mixed mode)
Windows
-
On your Windows instance, open a browser and go to the Dragonwell website. Select the options below and download the installation package.
-
Region: United States.
-
Edition: Standard or Extended.
-
JDK version: Dragonwell 8, 11, or 21.
-
System architecture: x86_64 or aarch64.
-
Operating system: Windows.
-
-
Go to
Program Fileson the C drive and locate the installation package. The following example uses Dragonwell 8.NoteThis topic uses
C:/Program Filesas the example path. If you use a different path, update it in subsequent steps. -
Extract the package, open the extracted folder, and copy the path from the address bar. The following example uses Dragonwell 8.
The full path of the extracted JDK directory is, for example,
C:\Program Files\Alibaba_Dragonwell_Extended_8.20.21_x64_windows\dragonwell-8.20.21. The directory contains standard JDK folders such as bin, include, jre, lib, and sample. -
Set environment variables.
-
Right-click This PC and select Properties.
-
On the About page, click Advanced system settings.
-
Click Environment Variables.
-
In System variables, click New. Set variable name to
JAVA_HOMEand variable value to the path you copied. Click OK. -
In System variables, select Path and click Edit.
-
Add these two paths:
%JAVA_HOME%\bin %JAVA_HOME%\jre\bin -
Click OK twice to save.
-
-
Press
Win+R, typecmd, and press Enter. Verify the installation:java -versionIf the installation is successful, the output is similar to the following:
C:\Users\Administrator.IZJIV27KCA4EACZ>java -version OpenJDK 64-Bit Server VM warning: Deactivate UseIOPrioritySizePolicy due to failed to parse cpu stat openjdk version "1.8.0_422" OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition 8.20.21) (build 1.8.0_422-b01) OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition 8.20.21) (build 25.422-b01, mixed mode) C:\Users\Administrator.IZJIV27KCA4EACZ>