Java SE Development Kit 11
Open a terminal.
Execute the following commands:
sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk1.11.0/bin/java" sudo update-alternatives --remove "javac" "/usr/lib/jvm/jdk1.11.0/bin/javac" sudo update-alternatives --remove "javaws" "/usr/lib/jvm/jdk1.11.0/bin/javaws" sudo rm -r /usr/lib/jvm/jdk1.11.0Note:Replace "
jdk1.11.0" in each of the above commands with the path to the JDK on your server.
Amazon Corretto (OpenJDK) 11
See the following documentation from Amazon for instructions:
OpenJDK 11
Open a terminal.
Execute the following command:
sudo apt remove openjdk-11-jdk