17 Jun How to install Java JDK 16 on Ubuntu
Learn how to download and install Java JDK 16 on Ubuntu. We will also set the path and verify the version after installation. Type the following commands:
1 2 3 4 5 6 7 |
$ sudo dpkg -i jdk-16_linux-x64_bin.deb $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-16/bin/java 1 $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-16/bin/javac 1 |
Installation completed successfully above. Now, let us verify whether we have installed successfully or not.
1 2 3 |
$ java --version |
Video Tutorial
If you liked the tutorial, spread the word and share the link and our website Studyopedia with others:
Support us: DONATE
Read More:
No Comments