marquis-de-carabas
April 10th, 2009, 11:43 PM
Okay. First I downloaded the binary from the java website. I put it into /opt/java/ on my desktop. I changed the permissions on the file to a+rwx. Then, I used cd to get to the /java and I executed the file with the command:
./jre-6u13-linux-i586.bin
I accepted the terms of aggreement and it installed, generating a folder called jre1.6.0_13 in /java
Now I am trying to set this runtime env as the default but i have hit a snag. I did this:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_13/bin/java" 1 /*all on one line*/
sudo update-alternatives --set java /opt/java/jre1.6.0_13/bin/java
the first command worked but the second spits out this message:
update-alternatives: Cannot find alternative `/opt/java/jre1.6.0_13/bin/java'.
Does anyone know why this may be?
I run Ubuntu Hardy using i believe 32 bit.
I am relatively new at this.
./jre-6u13-linux-i586.bin
I accepted the terms of aggreement and it installed, generating a folder called jre1.6.0_13 in /java
Now I am trying to set this runtime env as the default but i have hit a snag. I did this:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_13/bin/java" 1 /*all on one line*/
sudo update-alternatives --set java /opt/java/jre1.6.0_13/bin/java
the first command worked but the second spits out this message:
update-alternatives: Cannot find alternative `/opt/java/jre1.6.0_13/bin/java'.
Does anyone know why this may be?
I run Ubuntu Hardy using i believe 32 bit.
I am relatively new at this.