0% found this document useful (0 votes)
727 views

How To Install Java in Kali Linux

The document provides instructions for installing Java JDK by extracting a tar file, moving the JDK folder, and using update-alternatives to set the Java, javac, and mozilla-javaplugin alternatives to the newly installed JDK version. It also includes a command to check the installed Java version.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
727 views

How To Install Java in Kali Linux

The document provides instructions for installing Java JDK by extracting a tar file, moving the JDK folder, and using update-alternatives to set the Java, javac, and mozilla-javaplugin alternatives to the newly installed JDK version. It also includes a command to check the installed Java version.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy