From f13fafd23f5d69017642292155a85dc6f36ea6a5 Mon Sep 17 00:00:00 2001 From: lumc Date: Tue, 27 Oct 2020 14:43:01 +0200 Subject: ELCCR-893: JAVA_HOME incorrectly set after OpenJdk 11 upgrade Change-Id: Id6f05e61f8b7496ba7193136b53192236ea084cf --- .../doc/getting_started_ucpe_manager.xml | 65 ++++++++++++---------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml b/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml index e2a8a97..211de99 100644 --- a/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml +++ b/doc/book-enea-nfv-access-getting-started/doc/getting_started_ucpe_manager.xml @@ -109,24 +109,33 @@ openjdk version "11.0.3" 2019-04-16 LTS OpenJDK Runtime Environment 18.9 (build 11.0.3+7-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.3+7-LTS, mixed mode, sharing) + + + If there are multiple java versions installed, switch + between them using the following command: + + alternatives --config java + + Optionally, the user can switch between the javac versions using: + alternatives --config javac. + The following system variables need to point to the OpenJDK 11 installation: - export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac))))) + export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which java))))) export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar + + + In order to make these system variables persistent, the commands given above + should be added to a script in the /etc/profile.d/ folder. + Sudo access is needed for this operation. + - - - If there are multiple java versions installed, switch - between them using the following command: - - alternatives --config java - @@ -162,39 +171,39 @@ userdel postgres /opt/ems. Everything will be installed under a folder called ucpemanager within the target installation folder. + + The application files will be installed in the + /opt/ems/ucpemanager/application folder, while the database + will be installed in the /opt/ems/ucpemanager/database folder. - The application files will be installed in - /opt/ems/ucpemanager/application. The database will - be installed in /opt/ems/ucpemanager/database. - If you have multiple spindles, it is recommended to let the application run off one and the database off the other. This will result in optimum performance. It is also recommended that the swap disk be the same as the one used for the application. - - Assuming another spindle is used (/drive2) do - the following: + Assuming another spindle is used (/drive2) do + the following: - - - Create a folder which will host the database (e.g. - emsDatabase). - + + + Create a folder which will host the database (e.g. + emsDatabase). + - - Create a soft-link that will point to this folder: + + Create a soft-link that will point to this folder: - ln -s /opt/ems/elementcenter/database /drive2/emsDatabase - + ln -s /opt/ems/elementcenter/database /drive2/emsDatabase + - - Follow the installation process as described below. - - + + Follow the installation process as described below. + + +
-- cgit v1.2.3-54-g00ecf