Installing Java on Kali-Linux

Posted by Aps



1. Download the latest Java SE SDK version.

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2. Untar the Archive.

-->tar -xzvf jdk-8u31-linux-i586.tar.gz
-->jdk1.8.0_31/
-->jdk1.8.0_31/include/
[..]
-->mv jdk1.8.0_31 /opt
--> cd /opt/jdk1.8.0_31/
-->update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_31/bin/java 1
-->update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_31/bin/javac 1
--> update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.8.0_31/jre/lib/i386/libnpjp2.so 1
-->update-alternatives: /opt/jdk1.8.0_31/jre/lib/amd64/libnpjp2.so wird verwendet, um /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so)
-->update-alternatives --set java /opt/jdk1.8.0_31/bin/java
-->update-alternatives: /opt/jdk1.8.0_31/bin/java wird verwendet, um /usr/bin/java
-->update-alternatives --set javac /opt/jdk1.8.0_31/bin/javac
-->update-alternatives: /opt/jdk1.8.0_31/bin/javac wird verwendet, um /usr/bin/javac (javac)
-->update-alternatives --set mozilla-javaplugin.so /opt/jdk1.8.0_31/jre/lib/i386/libnpjp2.so
-->java -version
-->java version "1.8.0_31"
-->Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
-->Java HotSpot(TM) Server VM (build 25.31-b07, mixed mode)



Back on top