How to install JDK 8 in Kali Linux 2022 - কালী লিনাক্সে JDK 8 ইনস্টলেশন
Cyber Security Expert
In this video I ma trying to describe how manually install JDK 8 in latest Kali Linux distribution. There are lots of cybersecurity projects and tools are available on the internet. Some of them like L3mon, HaxRAT and other Android RAT tools requires Java 8 OpenJDK 8 in our system. In Kali Linux recent update OpenJDK 8 is removed from Kali Linux repository and only OpenJDK 11 comes with Kali Linux. But some tools written on Java 8 so of we want to use those tools we must need to install JDK 8 on our Kali Linux manually. #kalilinux , #jdk , #cybersecurity
👉All the stapes are given here. First of all download JDK 8 (jdk-8u333-linux-x64.tar.gz) from this site https://www.oracle.com/java/technologies/downloads/ to your Download folder. You may need to register first to download it. Open a terminal window and go to the following folder , if you have not it , just create it. unzip the JDK 8 here. The file name may varies time to time because they may update it. So do not panic. $cd /usr/lib/jvm $ sudo tar -xzvf /home/kali/Downloads/jdk-8u333-linux-x64.tar.gz
👉 Now add the following lines to you environments file $sudo nano /etc/environments PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.8.0_333/bin:/usr/lib/jvm/jdk1.8.0_333/db/bin:/usr/lib/jvm/jdk1.8.0_333/jre/bin
J2SDKDIR="/usr/lib/jvm/jdk1.8.0_333" J2REDIR="/usr/lib/jvm/jdk1.8.0_333/jre" JAVA_HOME="/usr/lib/jvm/jdk1.8.0_333" DERBY_HOME="/usr/lib/jvm/jdk1.8.0_333/db"
Save the file with crt + x
👉 Now give the following commands one by one $sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_333/bin/java" 1711 $sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_333/bin/javac" 1711 $sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_333/bin/java $sudo update-alternatives --set javac /usr/lib/jvm/jdk1.8.0_333/bin/javac
If you do not get any error , it done.
👉 You can show the java environment by following commands $update-alternatives --list java $update-alternatives --list javac
👉 You can switch multiple java environment by the following command $sudo update-alternatives --config java
If you face any difficulties please leave a comments here. I will try to solve it inshallah. You are also welcome to request me for making cyber security related any video. You may give likes or share this video if you think it will be help to others.
👉Useful Links: ❤️ File sharing between Windows and Kali Linux : https://youtu.be/s1TcSxnWzkQ
👉 Social networks:
- Facebook: https://www.facebook.com/Cyber-Security-109995281357584
- Instagram: https://www.instagram.com/omizan/
- Tweeter: https://twitter.com/o_mizan
Thank you for watching. Mizan
⚠️ Disclaimer: Hacking without permission is illegal. This channel is strictly educational for learning about cyber-security in the areas of ethical hacking and penetration testing so that we can protect ourselves against the real hackers. ... https://www.youtube.com/watch?v=SswaRYFEfU4
30084446 Bytes