Results 1 to 6 of 6

Thread: Cannot install Java in BackTrack 5 R3

Hybrid View

  1. #1
    Just burned their ISO
    Join Date
    May 2006
    Posts
    2

    Question Cannot install Java in BackTrack 5 R3

    First of all Good Morning everyone.

    I have been trying to get Java installed in BT5 R3 for two days. I have searched each of the discussion boards and tried to install via the wiki off of the main page. I have searched google and tried every way the I could find listed.

    I am running BT5 R3 in oracle virtualbox
    when I run the first command to update alternatives
    update-alternatives --install /usr/bin/java java /opt/java/jre1.7.0_05/bin/java 1

    I receive the following error
    update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-6-openjdk/jre/bin/java
    beacuse link group java is broken.

    updaate-alternatives: warning: not replacing /usr/bin/java with link.

    when I run the following command
    java --version

    I receive
    the program 'java' can be found in the following packages:
    * gcj-4.4-jre-headless
    * openjdk-6-jre-headless
    * cacao (you will have to enable component called 'universe')
    * gij-4.3 (you will have to enable component called 'universe')
    *jamvm (you will have to enable component called 'universe')


    All I am trying to do is get java running in firefox.
    Any and all assistance would be appreciated.

    HDollar

  2. #2
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Cannot install Java in BackTrack 5 R3

    Java working here without any changes to Backtrack.

    Code:
    root@bt:~# java -versionjava version "1.6.0_20"
    OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1)
    OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  3. #3
    Just burned their ISO
    Join Date
    Dec 2012
    Location
    where I'm needed
    Posts
    20

    Default Re: Cannot install Java in BackTrack 5 R3

    Hi,

    All I am trying to do is get java running in firefox.
    Any and all assistance would be appreciated.
    Check out point 2) in my post here:
    http://www.backtrack-linux.org/forum...ad.php?t=57928

  4. #4
    Just burned their ISO
    Join Date
    Feb 2013
    Posts
    1

    Cool Re: Cannot install Java in BackTrack 5 R3

    Quote Originally Posted by Hdollar View Post
    First of all Good Morning everyone.

    I have been trying to get Java installed in BT5 R3 for two days. I have searched each of the discussion boards and tried to install via the wiki off of the main page. I have searched google and tried every way the I could find listed.

    I am running BT5 R3 in oracle virtualbox
    when I run the first command to update alternatives
    update-alternatives --install /usr/bin/java java /opt/java/jre1.7.0_05/bin/java 1

    I receive the following error
    update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-6-openjdk/jre/bin/java
    beacuse link group java is broken.

    updaate-alternatives: warning: not replacing /usr/bin/java with link.

    when I run the following command
    java --version

    I receive
    the program 'java' can be found in the following packages:
    * gcj-4.4-jre-headless
    * openjdk-6-jre-headless
    * cacao (you will have to enable component called 'universe')
    * gij-4.3 (you will have to enable component called 'universe')
    *jamvm (you will have to enable component called 'universe')


    All I am trying to do is get java running in firefox.
    Any and all assistance would be appreciated.

    HDollar


    "hey buddy its quite easier to install just follow my commands
    1:download the java package frm java website &plz note the package size and ur downloaded package size are same
    2:now we have to create a directory in which we have to install for.eg:-"cd /usr/java/" you can use this directory also
    3:now move the the downloaded package from downloads to the created directory in this case we have "cd /usr/java/"
    4:unpack the tarball and install for e.g:-"tar zxvf jre-7u7-linux-i586.tar.gz"
    5:The Java files are installed in a directory called jre1.7.0_07 in the current directory.
    In this example, it is installed in the /usr/java/jre1.7.0_07 directory.
    When the installation has completed, you will see the word Done.
    6elete the .tar.gz file if you want to save disk space."
    hope i have you guide you properply.
    http://www.backtrack-linux.org/forum...cons/icon6.png

  5. #5
    Very good friend of the forum maverik35's Avatar
    Join Date
    Sep 2009
    Location
    Debian land
    Posts
    734

    Default Re: Cannot install Java in BackTrack 5 R3

    First of all, the update-alternatives is used to install/modify "Links" to an application. Let's say yo have 2 app that do the same thing, in your case, java, now the update-alternatives will decide for you (unless you change this option), what app will be used.

    You can use either openjdk-6-jre which is the Open source Java or the Sun Java, or in case of having both installed, use update-alternatives to choose which one to use..Every time you install a app which does the same thing, it will be updated by update-alternatives.

    Try this as an example: update-alternatives --config x-www-browser

    It will give you the info as to how many web browsers are installed and which one is the default (used in your system)...The one with asterisk is the default..If you want to make another web browser to be the default just give the option...

    The same thing with java..

    The update alternatives install LINKs not programs...

    Please, read more about update-alternatives, use the "man update-alternatives" in the terminal...Is all about links...

    Luck...
    Last edited by maverik35; 02-01-2013 at 03:45 PM.

  6. #6
    Just burned their ISO
    Join Date
    May 2006
    Posts
    2

    Default Re: Cannot install Java in BackTrack 5 R3

    Good morning all.

    This issue is fixed. I downloaded the 64 bit iso and everything worked as it should.

    Thank you for your replies.

    HDollar

Similar Threads

  1. How to install Java on backtrack 3
    By Basic204 in forum OLD Newbie Area
    Replies: 1
    Last Post: 04-05-2009, 01:18 AM
  2. How to install java 6.0_12
    By Basic204 in forum OLD Newbie Area
    Replies: 1
    Last Post: 02-26-2009, 06:53 PM
  3. Install Java Plugin
    By vb109 in forum OLD Newbie Area
    Replies: 2
    Last Post: 12-02-2007, 08:24 PM
  4. Install java plugin in Firefox 2.0.0.2
    By halftoke in forum OLD Newbie Area
    Replies: 5
    Last Post: 04-25-2007, 11:48 PM

Posting Permissions

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