HOWTO Install Java - Ubuntu 8.10
1.- Verify ubuntu core
wmunguiam@server:~$ uname -r
2.6.27-9-server
2.-Verify Java if installed
wmunguiam@server:~$ java -version
El programa «java» puede encontrarse en los siguientes paquetes:
* java-gcj-compat-headless
* cacao-oj6-jre-headless
* gij-4.2
* kaffe
* cacao
* openjdk-6-jre-headless
* jamvm
* gij-4.3
* sablevm
Pruebe: sudo apt-get install
bash: java: orden no encontrada
3.-Download jre-6u11-linux-x64.bin (linux 64 bits)
From: http://www.java.com/es/download/
wmunguiam@server:/$ wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=26218
4.-Prepare package
wwmunguiam@server:/usr/java$ ls -l
total 18024
-rw-r--r-- 1 root root 18431500 2008-12-12 14:33 jre-6u11-linux-x64.bin
wmunguiam@server:/usr/java$ su
Contraseña: XXXXXX
root@server:/usr/java# chmod a+x jre-6u11-linux-x64.bin
root@server:/usr/java# ls -l
total 18024
-rwxr-xr-x 1 root root 18431500 2008-12-12 14:33 jre-6u11-linux-x64.bin
5.-Install package
root@server:/usr/java# ./jre-6u11-linux-x64.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6 and
JAVAFX RUNTIME VERSION 1
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION...
Please enter "yes" or "no".
Do you agree to the above license terms? [yes or no]
yes
6.-Changing Folder
root@server:/usr/java# ls -l
total 18028
drwxr-xr-x 6 root root 4096 2008-12-12 14:39 jre1.6.0_11
-rwxr-xr-x 1 root root 18431500 2008-12-12 14:33 jre-6u11-linux-x64.bin
root@server:/usr/java#
Create jvm folder
root@server:/usr/java# mkdir /usr/lib/jvm
Move Folder
root@server:/usr/java# sudo cp -R jre1.6.0_11/ /usr/lib/jvm/
root@server:/usr/java# cd /usr/lib/jvm/
root@server:/usr/lib/jvm# ls -l
total 4
drwxr-xr-x 6 root root 4096 2008-12-12 15:12 jre1.6.0_11
7.- Activation and configuration
Set JRE as alternative
root@server:/usr/lib/jvm# update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_11/bin/java" 1
Set alternative as default
root@server:/usr/lib/jvm# update-alternatives --config java
Sólo hay un programa que provee java
(/usr/lib/jvm/jre1.6.0_11/bin/java). No se configurará nada.
Verify version:
root@server:/usr/lib/jvm# java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
8.- Firefox java plugins issues and solutions:
a.- Download JRE 6update2
Source Here
b.- Install as above and setup as default alternative
root@server:/usr/lib/jvm# ls -l
total 8
drwxr-xr-x 6 root root 4096 2008-12-12 15:49 jre1.6.0_02
drwxr-xr-x 6 root root 4096 2008-12-12 15:12 jre1.6.0_11
root@server:/usr/lib/jvm# update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_02/bin/java" 2
root@server:/usr/lib/jvm# update-alternatives --config java
Hay 2 alternativas que proveen `java'.
Selección Alternativa
-----------------------------------------------
1 /usr/lib/jvm/jre1.6.0_11/bin/java
*+ 2 /usr/lib/jvm/jre1.6.0_02/bin/java
Pulse para mantener el valor por omisión [*] o pulse un número de selección: 2
Se utiliza `/usr/lib/jvm/jre1.6.0_02/bin/java' para proporcionar `java'.
root@server:/usr/lib/jvm# java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
c.- Download Java Console 6.0.02 6.0.02 from Mozilla Addons
1.- Verify ubuntu core
wmunguiam@server:~$ uname -r
2.6.27-9-server
2.-Verify Java if installed
wmunguiam@server:~$ java -version
El programa «java» puede encontrarse en los siguientes paquetes:
* java-gcj-compat-headless
* cacao-oj6-jre-headless
* gij-4.2
* kaffe
* cacao
* openjdk-6-jre-headless
* jamvm
* gij-4.3
* sablevm
Pruebe: sudo apt-get install
bash: java: orden no encontrada
3.-Download jre-6u11-linux-x64.bin (linux 64 bits)
From: http://www.java.com/es/download/
wmunguiam@server:/$ wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=26218
4.-Prepare package
wwmunguiam@server:/usr/java$ ls -l
total 18024
-rw-r--r-- 1 root root 18431500 2008-12-12 14:33 jre-6u11-linux-x64.bin
wmunguiam@server:/usr/java$ su
Contraseña: XXXXXX
root@server:/usr/java# chmod a+x jre-6u11-linux-x64.bin
root@server:/usr/java# ls -l
total 18024
-rwxr-xr-x 1 root root 18431500 2008-12-12 14:33 jre-6u11-linux-x64.bin
5.-Install package
root@server:/usr/java# ./jre-6u11-linux-x64.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6 and
JAVAFX RUNTIME VERSION 1
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION...
Please enter "yes" or "no".
Do you agree to the above license terms? [yes or no]
yes
6.-Changing Folder
root@server:/usr/java# ls -l
total 18028
drwxr-xr-x 6 root root 4096 2008-12-12 14:39 jre1.6.0_11
-rwxr-xr-x 1 root root 18431500 2008-12-12 14:33 jre-6u11-linux-x64.bin
root@server:/usr/java#
Create jvm folder
root@server:/usr/java# mkdir /usr/lib/jvm
Move Folder
root@server:/usr/java# sudo cp -R jre1.6.0_11/ /usr/lib/jvm/
root@server:/usr/java# cd /usr/lib/jvm/
root@server:/usr/lib/jvm# ls -l
total 4
drwxr-xr-x 6 root root 4096 2008-12-12 15:12 jre1.6.0_11
7.- Activation and configuration
Set JRE as alternative
root@server:/usr/lib/jvm# update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_11/bin/java" 1
Set alternative as default
root@server:/usr/lib/jvm# update-alternatives --config java
Sólo hay un programa que provee java
(/usr/lib/jvm/jre1.6.0_11/bin/java). No se configurará nada.
Verify version:
root@server:/usr/lib/jvm# java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
8.- Firefox java plugins issues and solutions:
a.- Download JRE 6update2
Source Here
b.- Install as above and setup as default alternative
root@server:/usr/lib/jvm# ls -l
total 8
drwxr-xr-x 6 root root 4096 2008-12-12 15:49 jre1.6.0_02
drwxr-xr-x 6 root root 4096 2008-12-12 15:12 jre1.6.0_11
root@server:/usr/lib/jvm# update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_02/bin/java" 2
root@server:/usr/lib/jvm# update-alternatives --config java
Hay 2 alternativas que proveen `java'.
Selección Alternativa
-----------------------------------------------
1 /usr/lib/jvm/jre1.6.0_11/bin/java
*+ 2 /usr/lib/jvm/jre1.6.0_02/bin/java
Pulse
Se utiliza `/usr/lib/jvm/jre1.6.0_02/bin/java' para proporcionar `java'.
root@server:/usr/lib/jvm# java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
c.- Download Java Console 6.0.02 6.0.02 from Mozilla Addons
Comments
Post a Comment