. . .

AdoptJDK Installation

Introduction

When using ApiOmat microservices like Lurker, a Java Runtime Environment is required when executing the service at an operating system level. This page is about how to install a Java Runtime Environment, namely the AdoptOpenJDK. AdoptOpenJDK provides prebuilt OpenJDK binaries and LTS support for several versions.

Installation

# Download latest Java 11 release:
https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot
 
# Go to /opt folder
cd /opt
 
# Extract the .tar.gz. You can use the following command:
tar -xf OpenJDK11U-jdk_x64_linux_hotspot_11.*.tar.gz
 
# Add this version of Java to your PATH by creating a link to the java binary in /usr/bin:
ln -s /opt/jdk-11.*/bin/java /usr/bin/java
 
# Java should immediately be available as command. Try it out:
java -version
# Download latest JAVA 11 release:
https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot
 
# Go to C:\
# Extract the .zip. You can use the following command:
unzip OpenJDK11U-jdk_x64_windows_hotspot_11.0.1_13.zip
 
# Add this version of Java to your global PATH:
set PATH=%cd%\jdk-11.0.1+13\bin;%PATH%
 
# Log in again and check that Java has installed correctly:
java -version

Next steps

Install microservices, e.g. Lurker .

* link only available in Enterprise Documentation