Welcome to our article on How to install latest Java JDK on Kali Linux. 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. The Java Development Kit is a well adopted and applied distribution of Java Technology by Oracle Corporation. JDK implements the Java Language Specification and the Java Virtual Machine Specification and gives users the Standard Edition of the Java Application Programming Interface.

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 && apt upgrade -y
If a reboot is required after upgrade perform it.
[ -e /var/run/reboot-required ] && sudo reboot
3) Finally, install JAVA on Kali Linux
sudo apt install -y default-jdk
After 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)
Recommended books:
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 2024.x
- Installing Java on Kali Linux 2023.x
- Oracle Java installation on Kali Linux
Thank you!
Welcome!!