edit the file .bash_profile and .bashrc
Append the following lines:
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0 export JAVA_HOME export PATH=PATH:$JAVA_HOME/bin