How to Migrate Harmony SMP 2.x from OpenJDK 8 to OpenJDK 11?

Applies to Harmony SMP starting from version 2.0.0. Before completing the steps described in this article, upgrade the Harmony SMP to version 2.0.0 or later.

Starting from version 2.0.0, the Harmony SMP uses OpenJDK 11 for new installations by default (OpenJDK 8 is still supported). Versions prior to version 2.0.0 support only OpenJDK 8.

When upgrading to version 2.0.0 from an older version (1.4.0), the Java runtime version isn't updated automatically during the version upgrade. Instead, a manual migration is required. First, upgrade the Harmony SMP to version 2.0.0 or later and then complete the following steps described in this article.

 Instructions

Please follow the steps below to complete the migration.

  1. Install OpenJDK 11.

    sudo apt install openjdk-11-jre-headless
  2. Update JAVA_HOME in /opt/harmony-smp/bin/setenv.sh to point to OpenJDK 11.

    #!/bin/sh export JAVA_OPTS= ... export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
  3. Restart the SMP.

    sudo systemctl restart harmony-smp
  4. Test to see that everything works.

    1. In case of any problems, revert step 2 and restart the SMP.

  5. Remove OpenJDK 8.

 Related articles