I downloaded .deb file for JDK11 from https://www.oracle.com/java/technologies/javase-jdk11-downloads.html. After installation (ubuntu 18.04) when I run update-alternatives --config java, I don't see the newly installed jdk in the list.
There is 1 choice for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
* 1 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
ls -l /usr/bin/java produces /etc/alternatives/java
and the java in /etc/alternatives/ folder liks to java -> /usr/lib/jvm/java-8-oracle/jre/bin/java
I would like to switch between java8 and java11. Is it possible to fix this without breaking the java-8-oracle installation?