How To Install Java 15.0.2 On Ubuntu 20.04 LTS


1. Download Java from the below URL: https://www.oracle.com/java/technolog…

This will lead you JAVA JDK download page Click on button “ JDK download ” for Java SE update 4.

Accept oracle license agreement Find and click on the correct jdk download link right for your operating system to download Save the file to disk

2. Install Java java 14 2020-03-17 Java(TM) SE Runtime Environment (build 14+36-1461) Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing) $ javac –version javac 14

$ sudo dpkg -i jdk-15.0.2_linux-x64_bin.deb
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-15.0.2/bin/java 1
$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-15.0.2/bin/javac 1
$ java --version

java 15.0.2 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

Note that you have to change the jdk version name in code. In my case it is jdk-15.0.2

Leave a Reply

Your email address will not be published. Required fields are marked *