Welcome to our article on How to install latest Java JDK on Kali Linux 2021.x|2020.x. Many applications require Java installed on your computer for them to run smoothly. This tutorial will guide you through a complete process of installing latest java on Kali Linux operating system.
Most articles you read online will give you hard to follow procedure but this is a straightforward guide and you will always get latest version of java on your distribution.
If you are on Kali Linux, make sure you have correct repositories in your sources.list file.You can find the correct way of doing that from my previous article Add repositories to Kali Linux.
Then after that:
1) Switch to root account or use sudo, with the first one you’ll enter the root password and with the second one you’ll enter your normal user account password.
sudo su -2) Then update your system
apt update
sudo apt upgrade3) Finally, install JAVA on Kali Linux
apt install -y default-jdkAfter java downloading and installing successfully, check your Java version:
$ java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-post-Debian-1)
OpenJDK 64-Bit Server VM (build 11.0.13+8-post-Debian-1, mixed mode, sharing)Java Mastery courses:
- Java Programming: Complete Beginner to Advanced
- Project Development Using JAVA for Beginners
- Java Programming Masterclass for Software Developers
- Full Stack Java developer – Java + JSP + Restful WS + Spring
- Java In-Depth: Become a Complete Java Engineer!
- Java for Absolute Beginners
- Java Programming for Complete Beginners
- The Complete Java Certification Course
Thanks for reading. feel free to drop a comment in case you encounter any error or problem.
Search Tags:
- Install Java JDK on Kali Linux
- Installing Java on Kali Linux 2021.x
- Oracle Java installation on Kali Linux





































































