Skip to content

Installation Guide

John Jiang edited this page Jun 28, 2023 · 4 revisions

Installation Tencent Kona

Install with binary

Get Tencent Kona binary from Releases, e.g. TencentKona11.0.9.1.b1.tgz

cd <Install_Path>
tar -zxvf TencentKona11.0.9.1.b1.tgz
export JAVA_HOME=<Install_Path>/TencentKona11.0.9.1.b1
export PATH=${JAVA_HOME}/bin:$PATH

Install with SDKMAN

SDKMAN already supports Tencent Kona, please list the releases at first,

$ sdk list java | grep kona
Tencent       |     | 17.0.7       | kona    |            | 17.0.7-kona
              |     | 11.0.19      | kona    |            | 11.0.19-kona
              |     | 8.0.372      | kona    |            | 8.0.372-kona

and then install a release like the below command,

$ sdk install java 11.0.19-kona

Verify Tencent Kona Version

The output of java -version should like:

bash#> java -version
openjdk version "11.0.9.1-ga" 2020-11-04
OpenJDK Runtime Environment TencentKonaJDK (build 11.0.9.1-ga+1)
OpenJDK 64-Bit Server VM TencentKonaJDK (build 11.0.9.1-ga+1, mixed mode)

Use Docker

1. Get docker image

~# docker pull konajdk/konajdk:11

2. check local images, get IMAGE ID

~# docker images

Output

REPOSITORY                                               TAG                      IMAGE ID            CREATED             SIZE
konajdk/konajdk                                          11                       0ff4d468680e        2 hours ago         417MB

3. Verify Java version

~# docker run -it [IMAGE ID] java -version

Output should contain "Tencent Kona"

openjdk version "11.0.14-ga" 2022-02-17
OpenJDK Runtime Environment TencentKonaJDK (build 11.0.14-ga+1)
OpenJDK 64-Bit Server VM TencentKonaJDK (build 11.0.14-ga+1, mixed mode)