How to Install Java JDK in Kali Linux


1. Download the latest Java SE SDK version. 

Download Java SDK


At the time of writing the filename and version was jdk-7u45-linux-x64.tar.gz


2. Untar the Archive

jdk-7u45-linux-x64.tar.gz
mv jdk1.7.0_45 /opt
cd /opt/jdk1.7.0_45

3.This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:


root@lhackg~# update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_45/bin/java 1

root@lhackg~# update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_45/bin/javac 1
root@lhackg~# update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 1
root@lhackg~# update-alternatives --set java /opt/jdk1.7.0_45/bin/java
root@lhackg~# update-alternatives --set javac /opt/jdk1.7.0_45/bin/javac
root@lhackg~# update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so

4. TestTo check the version of Java you are now running


java -version


To check the browser plugin browse to site and click “Do I have Java?”

No comments:

Post a Comment