hola, si estan aca es porque buscan como instalar el JDK muy necesario para nosotros los programadores, la informacion ha sido extraida de aca:
http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/
3. Install Java JDK or JRE package
## JDK 32-bit ##
rpm -Uvh /path/to/binary/jdk-7u25-linux-i586.rpm
## JDK 64-bit ##
rpm -Uvh /path/to/binary/jdk-7u25-linux-x64.rpm
## JRE 32-bit ##
rpm -Uvh /path/to/binary/jre-7u25-linux-i586.rpm
## JRE 64-bit ##
rpm -Uvh /path/to/binary/jre-7u25-linux-x64.rpm
|
4a. Install Sun/Oracle JDK java, javaws, libjavaplugin.so (for Firefox/Mozilla) and javac withalternatives –install command
Use Java JDK latest version (/usr/java/latest)
## java ##
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000
## javaws ##
alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000
## Java Browser (Mozilla) Plugin 32-bit ##
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/jre/lib/i386/libnpjp2.so 20000
## Java Browser (Mozilla) Plugin 64-bit ##
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/jre/lib/amd64/libnpjp2.so 20000
## Install javac only if you installed JDK (Java Development Kit) package ##
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 20000
|
Use Java JDK absolute version (/usr/java/jdk1.7.0_25)
## java ##
alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_25/jre/bin/java 20000
## javaws ##
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_25/jre/bin/javaws 20000
## Java Browser (Mozilla) Plugin 32-bit ##
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.7.0_25/jre/lib/i386/libnpjp2.so 20000
## Java Browser (Mozilla) Plugin 64-bit ##
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.7.0_25/jre/lib/amd64/libnpjp2.so 20000
## Install javac only if you installed JDK (Java Development Kit) package ##
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_25/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_25/bin/jar 20000
|
4b. Install Sun/Oracle JRE java, javaws and libjavaplugin.so (for Firefox/Mozilla) with alternatives –install command
Use Java JRE latest version (/usr/java/latest)
## java ##
alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000
## javaws ##
alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 20000
## Java Browser (Mozilla) Plugin 32-bit ##
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/lib/i386/libnpjp2.so 20000
## Java Browser (Mozilla) Plugin 64-bit ##
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 20000
|
Use Java JRE absolute version (/usr/java/jre1.7.0_25)
## java ##
alternatives --install /usr/bin/java java /usr/java/jre1.7.0_25/bin/java 20000
## javaws ##
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.7.0_25/bin/javaws 20000
## Java Browser (Mozilla) Plugin 32-bit ##
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.7.0_25/lib/i386/libnpjp2.so 20000
## Java Browser (Mozilla) Plugin 64-bit ##
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.7.0_25/lib/amd64/libnpjp2.so 20000
no olvidar adicionar al final del archivo
vi /etc/profile el path:
JAVA_HOME=/usr/java/latest; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
y ejecutar el comando para actualizar las variables de entorno:
source /etc/profile
|
No hay comentarios:
Publicar un comentario
Agradezco el interes en el tema, estaré atento para poder leer su comentario.