How to install Java JDK on Kali Linux - Uk2blogger

January 26, 2022

How to install Java JDK on Kali Linux

Java JDK is required to run the JAVA programs on your system you can also install JDK 8 on Debian or Ubuntu systems. For example, to install L3MON in Kali Linux you need Java8 JDK for building the android based application. Also known as Java 1.8.0. Also this blog will fix error command java not found You can check the list of commands used in this blog here.
How to install Java JDK on Kali Linux

To install Java JDK on Kali Linux we are going to set up Java SE on Kali Linux. Java SE includes The Java Development Kit (JDK), including the JavaFX Software Development Kit (SDK), Java Runtime Environment (JRE), (Server and regular packages). To fix all the java related errors we use to install Java JDK on Kali Linux.
Step 1 How to install Java JDK on Kali Linux
Open google chrome or firefox and type Download JAVA or click here.
How to install Java JDK on Kali Linux

Scroll down and look for Java SE Development Kit to Install Java in Kali Linux. Select your operating system type and download the Java8. I'm going to click on x64 Compressed Archive. Look for tar hyperlink and click on it to download java8 on your Kali Linux.
How to install Java JDK on Kali Linux

Once you click to unlock you will be redirected to the login page. If you do not have an account with java please create a new one and sign in to download JAVA8.
How to install Java JDK on Kali Linux

Step 2 Extract the file to opt directory
Please extract the tar file to the opt directory by using the command mentioned below.
 $ sudo tar -xf filename.tar.gz -C /opt/
How to install Java JDK on Kali Linux

Step 3 Custom path for Java8 on your Kali Linux.
 $ sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.8.0_321/bin/java" 1
How to install Java JDK on Kali Linux

Step 4 set the java8 as the default
 $ sudo update-alternatives --config java
How to install Java JDK on Kali Linux

Run the command to check java version on Kali Linux
 $ java -version
You have successfully installed java 8 also known as Java 1.8.0 on your Kali Linux. In the same way, you can install JDK 8 on Debian or Ubuntu Systems.

Uk2blogger