Skip to main content
Version: 3.7.x.x LTS

Migrating to OpenJDK

nevisAppliance

nevisAdmin

Perform the following steps to migrate an existing nevisAdmin instance running with adnjdk18 to OpenJDK 1.8.0:

  1. Set the following variables in the environment configuration file:

    # /var/opt/nevisadmin/<instance name>/conf/env.conf
    RTENV_SECURITY_CHECK=no_shell
    export JAVA_HOME=/etc/alternatives/jre_1.8.0
    export AS_JAVA=/etc/alternatives/jre_1.8.0
Java Lookup Order

nevisAdmin has the following Java lookup order:

  1. Environment variables (as defined in the env.conf file).
    • JAVA_HOME is used by nevisAdmin shell scripts.
    • AS_JAVA is used by adnglassfish.
  2. /opt/adnjdk1*
  3. javac from PATH.
  1. Restart the nevisAdmin instance:

    nevisadmin <instance name> restart

nevisAgent

Perform the following steps to migrate an existing nevisAgent instance running with adnjdk18 to OpenJDK 1.8.0:

  1. SetJAVA_HOME in the environment configuration file:

    # /var/opt/nevisagent/<instance name>/conf/env.conf
    JAVA_HOME=/etc/alternatives/jre_1.8.0
Java Lookup Order

nevisAgent has the following Java lookup order:

  1. JAVA_HOME (defined in the env.conf file).
  2. /opt/adnjdk1*
  3. java from PATH.
  1. Restart the nevisAgent instance:

    nevisagent <instance name> restart

RHEL 7

Perform the following steps to install OpenJDK 1.8.0:

  1. Check whether OpenJDK 1.8.0 JDK (the java-1.8.0-openjdk-devel package) is installed on your operating system:

    yum list installed java-1.8.0-openjdk-devel
  2. Install the package in case it is not available:

    yum install java-1.8.0-openjdk-devel

If no other components use adnjdk18, you can now remove the adnjdk18package. Java is taken from the PATH. No following steps are required.

nevisAdmin

Perform the next steps to migrate an existing nevisAdmin instance:

  1. Ensure OpenJDK 1.8.0 JDK is installed (see RHEL 7)

  2. Uninstall adnjdk18 or set JAVA_HOME in the environment configuration file:

    # /var/opt/nevisadmin/<instance name>/conf/env.conf
    RTENV_SECURITY_CHECK=no_shell
    export JAVA_HOME=/etc/alternatives/jre_1.8.0
    export AS_JAVA=/etc/alternatives/jre_1.8.0
Java Lookup Order

nevisAdmin has the following Java lookup order:

  1. Environment variables (as defined in the env.conf file).
    • JAVA_HOME is used by nevisAdmin shell scripts.
    • AS_JAVA is used by adnglassfish.
  2. /opt/adnjdk1* (if installed).
  3. javac from PATH.
  1. Restart the nevisAdmin instance:

    nevisadmin <instance name> restart

nevisAgent

Perform the next steps to migrate an existing nevisAgent instance:

  1. Ensure that OpenJDK 1.8.0 JDK is installed (see RHEL 7).

  2. Uninstall adnjdk18or set the following variables via the environment configuration file:

    # /var/opt/nevisagent/<instance name>/conf/env.conf
    JAVA_HOME=/etc/alternatives/jre_1.8.0
Java Lookup Order

nevisAgent has the following Java lookup order:

  1. JAVA_HOME environment variable (defined in the env.conf file).
  2. /opt/adnjdk1* (if installed).
  3. java from PATH.
  1. Restart the nevisAgent instance:

    nevisagent <instance name> restart