MTG-Java 17 Migration

Introduction

This page will walk you through the migration process from the previously used MTG Java 17 package to the Adoptium Temurin JRE 17 package.

It is always advisable to create a backup prior to implementing any changes.

Stopping MTG Applications

First, it is necessary to stop all MTG applications. This should be done by stopping the systemd services. The following command can be used to list all running MTG-related services:

systemctl list-units --type=service | grep mtg

Removing MTG-Java Package

Before the Adoptium Temurin JRE can be installed, the MTG Java 17 package must be removed. This can be done by running the following commands:

RHEL
dnf remove mtg-java17
Ubuntu
apt purge mtg-java17
SUSE
zypper remove mtg-java17

Installing Adoptium Temurin JRE

Adoptium provides Linux package repositories for Red Hat, Ubuntu, and openSUSE Leap. The official instructions on how to add the repositories can be found here.

As of May 2025, Adoptium does not provide an official repository for openSUSE Leap 15.6 - The current workaround is to change the URL in the repository file to use the openSUSE Leap 15.5 repository instead.

Once the repository has been successfully configured, the Adoptium Temurin JRE package can be installed via the following commands:

RHEL
dnf install temurin-17-jre
Ubuntu
apt install temurin-17-jre
SUSE
zypper install temurin-17-jre

The Java installation can be verified by running the command java --version.

Start MTG Applications

After successful installation of the Adoptium Temurin JRE, the MTG applications can be restarted.