Updated on 2025-08-13 GMT+08:00

Installing JDK

This action aims to install JDK on a host. The following table describes the configuration parameters.

Table 1 Parameters for installing JDK

Parameter

Mandatory

Description

Action Name

Yes

Custom action name. Enter 1 to 128 characters. Do not start or end with a space. Use letters, digits, spaces, and these special characters: -_,;:./()

Environment

Yes

Deployment object. Select an environment whose resource type is host cluster.

JDK Version

Yes

JDK version.

Installation Path

Yes

Installation path of JDK.

Action Control

No

You can configure whether to enable the settings.

  • Keep running on failure: Continue the task even if this action fails.
  • Execute this action with the sudo permission: Use the sudo permission to deploy this action.

When purchasing a Huawei Cloud ECS, you are advised to select Arm-based CentOS, Ubuntu, or Huawei Cloud EulerOS. Arm-based EulerOS does not have the yum source of openjdk-11.

If you encounter any problems during deployment, see Installing JDK.