Short Tutorial - How to Install Java (JDK) on Kali Linux

This short tutorial helps guide you on installing the Java Development Kit (JDK) on Kali Linux. JDK is used in compiling and running Java applications. Kali Linux is the first choice of security professionals to identify vulnerabilities in IT products. Kali Linux is a Linux-based framework that comes with pre-install different cybersecurity tools.

System Requirements to install JDK



No need for the binary for installation on Kali Linux. However, you can download the binary after registration at the Oracle portal.


Step 1 - Update Kali

$ sudo apt update

Step 2 - Install default JDK on Kali

$ sudo apt install default-jdk

Step 3 - Check the installation

Just shoot the below command for checking the proper installation.

$ java --version

If need to install a different version of Java instead of the default version, use the below commands:

$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac


This blog is a short tutorial for guiding the installation of Java (JDK) on Kali Linux. You can install it by shooting a sequence of commands, as mentioned in the blog.

Subscribe us to receive more such articles updates in your email.

If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!

Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.

You may also like...

1 Response

  1. Rick says:

    Thanks for the article in easy to follow instruction

Leave a Reply

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