How To Install Java 8 In Kali Linux
Java is a programming language used to develope android apps , web apps , desktop apps , games and much more .
About Kali Linux
Kali Linux is a Linux distribution that is specialized for tasks like cybersecurity. It is an open-source product with a lot of customization done for penetration testing, so that it helps many companies to identify their vulnerabilities.
Kali linux is used for penetrations testing , security research , computer forensics , and reverse engineering.
1. Its Free
2. Open source
3. Thousands of tools
4. Full customization
5. Multi Language Support
Download Java 8u191
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3a%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk8-downloads-2133151.html; oraclelicense=accept-securebackup-cookie;" "https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz"
Download Java 8u131
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz
- sudo mkdir /usr/lib/jvm
- cd ~/usr/lib/jvm
- sudo tar -xvzf ~/Downloads/jdk-8u191-linux-x64.tar.gz
Edit Environment File
- sudo nano /etc/environment
Add This 3 Lines
At The End Of Environment File Paste This
Save Using ctrl x y
Copy paste all the commands one by one
- sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.8.0_191/bin/java” 0
- sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/jvm/jdk1.8.0_191/bin/javac” 0
- sudo update-alternatives –set java /usr/lib/jvm/jdk1.8.0_191/bin/java
- sudo update-alternatives –set javac /usr/lib/jvm/jdk1.8.0_191/bin/javac
- update-alternatives –list java
- update-alternatives –list javac
- java -version
In this post i show how to install java openjdk 8 in kali linux which is required by many tools , like lemon rat and many more , hope you like my post dont’t forget subscribe my youtube channel. Create a forum here if you facing some error .