How To Install Java in Kali Linux

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Hi bro, i have missed you much. Here is a tut try it, NOTE:replace the jdk1.7.

0_
17 with your version ( what you see in the folder name). The best way is to repl
ace the name in this file the paste line by line ready to execute..

root@localhost:~# tar -xzvf jdk-7u17-linux-x64.tar.gz


root@localhost:~# mv jdk1.7.0_17 /opt
root@localhost:~# cd /opt/jdk1.7.0_17/
#update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_45/bin/java 1
#update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_45/bin/javac 1
#update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla
-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 1
#update-alternatives --set java /opt/jdk1.7.0_45/bin/java
#update-alternatives --set javac /opt/jdk1.7.0_45/bin/javac
#update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/
libnpjp2.so
Check if installed..
# java -version

You might also like