Results 1 to 6 of 6

Thread: Unable to install java on Kali Linux

  1. #1
    Join Date
    2013-Jul
    Posts
    3

    Post Unable to install java on Kali Linux

    Hello every one...

    I am a newbie in this field and I am having trouble while installing java on kali linux.

    I tried installing java based on these instructions. http://forums.kali.org/showthread.ph...highlight=java

    But I am not able to verify the java installation from this url: http://www.java.com/en/download/testjava.jsp

    Here is what I got in the terminal
    Code:
    root@indra:~# tar -xzvf /root/jdk-7u25-linux-x64.tar.gz
    jdk1.7.0_25/
    jdk1.7.0_25/db/
    .
    .
    .
    jdk1.7.0_25/man/man1/javadoc.1
    jdk1.7.0_25/THIRDPARTYLICENSEREADME.txt
    jdk1.7.0_25/COPYRIGHT
    root@indra:~# mv jdk1.7.0_25 /opt
    root@indra:~# cd /opt/jdk1.7.0_25
    root@indra:/opt/jdk1.7.0_25# update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_25/bin/java 1
    root@indra:/opt/jdk1.7.0_25# 
    root@indra:/opt/jdk1.7.0_25# update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_25/bin/javac 1
    root@indra:/opt/jdk1.7.0_25# update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_25/jre/lib/amd64/libnpjp2.so 1
    update-alternatives: using /opt/jdk1.7.0_25/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
    root@indra:/opt/jdk1.7.0_25# 
    root@indra:/opt/jdk1.7.0_25# update-alternatives --set java /opt/jdk1.7.0_25/bin/java
    update-alternatives: using /opt/jdk1.7.0_25/bin/java to provide /usr/bin/java (java) in manual mode
    root@indra:/opt/jdk1.7.0_25# 
    root@indra:/opt/jdk1.7.0_25# update-alternatives --set javac /opt/jdk1.7.0_25/bin/javac
    update-alternatives: using /opt/jdk1.7.0_25/bin/javac to provide /usr/bin/javac (javac) in manual mode
    root@indra:/opt/jdk1.7.0_25# 
    root@indra:/opt/jdk1.7.0_25# update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_25/jre/lib/amd64/libnpjp2.so
    But the java test in their website showed "java is not working" .... please help me...

  2. #2
    Join Date
    2013-Apr
    Posts
    126
    Are you using the 32 bit or the 64 bit version of Kali ?

  3. #3
    Did you even close and re-open browser before testing?

  4. #4
    Join Date
    2013-Jul
    Posts
    3
    while downloading kali-linux there was not an option like 32 bit or 64 bit. I am not sure which version i am using but "kali-linux-1.0.3-i386" this is the file name which i downloaded..... It is i386 architecture, and GNOME windows manager. I am duel booting a 64 bit windows 8 with it. Please help..

  5. #5
    Join Date
    2013-Apr
    Posts
    126
    kali-linux-1.0.3-i386 is the 32 bits version and you are trying to install java (jdk-7u25-linux-x64.tar.gz) which is for the 64 bit version.

  6. #6
    Join Date
    2013-Jul
    Posts
    3
    well... that should help.... i will go try that.... thanks for the support.... I wish if the replies were visible as soon as we post without the time to moderate... that would save a lot of time... thanks again...

Similar Threads

  1. Replies: 1
    Last Post: 2022-11-22, 00:38
  2. Kali Linux 2.0 unable to install linux-headers-3.18.0-kali3-686-pae
    By sla2016 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2015-12-31, 11:58
  3. Install Java 8 on Kali-Linux
    By R.3volv3.R in forum How-To Archive
    Replies: 0
    Last Post: 2014-03-22, 11:18

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •