Created
January 17, 2018 07:29
-
-
Save wh1t3p1g/48e2a202fbf15c5f34834a10897ff674 to your computer and use it in GitHub Desktop.
kali install java8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
download package from official site | |
tar -xzvf xxx.tar.gz | |
mv jdk1.8.0_162 /opt | |
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_162/bin/java 1 | |
update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_162/bin/javac 1 | |
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.8.0_162/jre/lib/amd64/libnpjp2.so 1 | |
update-alternatives --set java /opt/jdk1.8.0_162/bin/java | |
update-alternatives --set javac /opt/jdk1.8.0_162/bin/javac | |
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.8.0_162/jre/lib/amd64/libnpjp2.so | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment