If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

Re: Cannot install Java in BackTrack 5 R3

Originally Posted by Hdollar

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

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...