Install adoptopenjdk 11 with yum command

book

Article ID: 225995

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway CA API Gateway Enterprise Service Manager (Layer 7) CA Mobile API Gateway CA Rapid App Security STARTER PACK-7

Issue/Introduction

How to install adoptopenjdk-11 on software gateway.

Environment

Release : 10.1

Software gateway

Resolution

1. create a new yum repository file for adopt jdk,

# vi /etc/yum.repos.d/adoptopenjdk.repo 
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/artifactory/rpm/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public

 

2. run yum install command,

# yum install adoptopenjdk-11-hotspot-11.0.11+9-3.x86_64

 

After install, the jdk location should be,

/usr/lib/jvm/adoptopenjdk-11-hotspot

Use it as the java path when configuring the software gateway.

Additional Information

The jdk 11 has no more jre folder,

https://www.oracle.com/java/technologies/javase/11-relnote-issues.html