Oracle JDK 11 Ubuntu 19.04 Installation - Setting Up
-
4. Setting Up Oracle JDK 11
Now to Install JDK 11 into System
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-11/bin/java 1065
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-11/bin/javac 1065
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-11/bin/jar 1065
-
5. Switching to Java 11
Finally, to Switch Java to JDK 11
This is Valid only if you have to Manage more than One Java Releases:sudo update-alternatives --config java