Migrating to OpenJDK
nevisAppliance
nevisAdmin
Perform the following steps to migrate an existing nevisAdmin instance running with adnjdk18 to OpenJDK 1.8.0:
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
nevisAdmin has the following Java lookup order:
- Environment variables (as defined in the env.conf file).
- JAVA_HOME is used by nevisAdmin shell scripts.
- AS_JAVA is used by adnglassfish.
/opt/adnjdk1*
- javac from PATH.
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:
SetJAVA_HOME in the environment configuration file:
# /var/opt/nevisagent/<instance name>/conf/env.conf
JAVA_HOME=/etc/alternatives/jre_1.8.0
nevisAgent has the following Java lookup order:
- JAVA_HOME (defined in the env.conf file).
/opt/adnjdk1*
- java from PATH.
Restart the nevisAgent instance:
nevisagent <instance name> restart
RHEL 7
Perform the following steps to install OpenJDK 1.8.0:
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
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:
Ensure OpenJDK 1.8.0 JDK is installed (see RHEL 7)
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
nevisAdmin has the following Java lookup order:
- Environment variables (as defined in the env.conf file).
- JAVA_HOME is used by nevisAdmin shell scripts.
- AS_JAVA is used by adnglassfish.
/opt/adnjdk1*
(if installed).- javac from PATH.
Restart the nevisAdmin instance:
nevisadmin <instance name> restart
nevisAgent
Perform the next steps to migrate an existing nevisAgent instance:
Ensure that OpenJDK 1.8.0 JDK is installed (see RHEL 7).
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
nevisAgent has the following Java lookup order:
- JAVA_HOME environment variable (defined in the env.conf file).
/opt/adnjdk1*
(if installed).- java from PATH.
Restart the nevisAgent instance:
nevisagent <instance name> restart