标签:com http style class div img code java c size t
Download Sun/Oracle Java 7u55 from here http://www.oracle.com/technetwork/java/javase/downloads/index.html. Select rpm package (jdk-7u55-linux-i586.rpm, jdk-7u55-linux-x64.rpm, jre-7u55-linux-i586.rpm or jre-7u55-linux-x64.rpm).
sudo -i ## OR ## su -
## JDK 32-bit ## rpm -Uvh /path/to/binary/jdk-7u55-linux-i586.rpm ## JDK 64-bit ## rpm -Uvh /path/to/binary/jdk-7u55-linux-x64.rpm ## JRE 32-bit ## rpm -Uvh /path/to/binary/jre-7u55-linux-i586.rpm ## JRE 64-bit ## rpm -Uvh /path/to/binary/jre-7u55-linux-x64.rpm
## java ## alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 200000 ## javaws ## alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 200000 ## Java Browser (Mozilla) Plugin 32-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/jre/lib/i386/libnpjp2.so 200000 ## 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 200000 ## Install javac only if you installed JDK (Java Development Kit) package ## alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 200000 alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 200000
## java ## alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_55/jre/bin/java 200000 ## javaws ## alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_55/jre/bin/javaws 200000 ## Java Browser (Mozilla) Plugin 32-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.7.0_55/jre/lib/i386/libnpjp2.so 200000 ## Java Browser (Mozilla) Plugin 64-bit ## alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.7.0_55/jre/lib/amd64/libnpjp2.so 200000 ## Install javac only if you installed JDK (Java Development Kit) package ## alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_55/bin/javac 200000 alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_55/bin/jar 200000
## java ## alternatives --install /usr/bin/java java /usr/java/latest/bin/java 200000 ## javaws ## alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000 ## Java Browser (Mozilla) Plugin 32-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/lib/i386/libnpjp2.so 200000 ## 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 200000
## java ## alternatives --install /usr/bin/java java /usr/java/jre1.7.0_55/bin/java 200000 ## javaws ## alternatives --install /usr/bin/javaws javaws /usr/java/jre1.7.0_55/bin/javaws 200000 ## Java Browser (Mozilla) Plugin 32-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.7.0_55/lib/i386/libnpjp2.so 200000 ## Java Browser (Mozilla) Plugin 64-bit ## alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.7.0_55/lib/amd64/libnpjp2.so 200000
java -version java version "1.7.0_55" Java(TM) SE Runtime Environment (build 1.7.0_55-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) javaws Java(TM) Web Start 10.51.2.13-fcs [...] javac -version javac 1.7.0_55
Note: Check libjavaplugin.so with restarting Mozilla Firefox and
writing about:plugins on address bar.
Java 7 console output on Fedora 18:
alternatives --config java There are 5 programs which provide ‘java‘. Selection Command ----------------------------------------------- * 1 /usr/java/jdk1.6.0_24/jre/bin/java 2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java + 3 /usr/java/jdk1.6.0_26/jre/bin/java 4 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java 5 /usr/java/jdk1.7.0_55/jre/bin/java Enter to keep the current selection[+], or type selection number: 5
Note: java with [+] is currently on use
alternatives --config javaws There are 3 programs which provide ‘javaws‘. Selection Command ----------------------------------------------- * 1 /usr/java/jdk1.6.0_24/jre/bin/javaws + 2 /usr/java/jdk1.6.0_26/jre/bin/javaws 3 /usr/java/jdk1.7.0_55/jre/bin/javaws Enter to keep the current selection[+], or type selection number: 3
Note: java with [+] is currently on use
alternatives --config libjavaplugin.so There are 3 programs which provide ‘libjavaplugin.so‘. Selection Command ----------------------------------------------- * 1 /usr/java/jdk1.6.0_24/jre/lib/i386/libnpjp2.so + 2 /usr/java/jdk1.6.0_26/jre/lib/i386/libnpjp2.so 3 /usr/java/jdk1.7.0_55/jre/lib/i386/libnpjp2.so Enter to keep the current selection[+], or type selection number: 3
alternatives --config libjavaplugin.so.x86_64 There are 3 programs which provide ‘libjavaplugin.so.x86_64‘. Selection Command ----------------------------------------------- * 1 /usr/java/jdk1.6.0_24/jre/lib/amd64/libnpjp2.so + 2 /usr/java/jdk1.6.0_26/jre/lib/amd64/libnpjp2.so 3 /usr/java/jdk1.7.0_55/jre/lib/amd64/libnpjp2.so Enter to keep the current selection[+], or type selection number: 3
alternatives --config javac There are 3 programs which provide ‘javac‘. Selection Command ----------------------------------------------- * 1 /usr/java/jdk1.6.0_24/bin/javac + 2 /usr/java/jdk1.6.0_26/bin/javac 3 /usr/java/jdk1.7.0_55/bin/javac Enter to keep the current selection[+], or type selection number: 3
Note: java with [+] is currently on use
Add JAVA_HOME environment variable to /etc/profile file or $HOME/.bash_profile file
Java JDK and JRE latest version (/usr/java/latest)
## export JAVA_HOME JDK/JRE ## export JAVA_HOME="/usr/java/latest"
Java JDK and JRE absolute version (/usr/java/jdk1.7.0_55)
## export JAVA_HOME JDK ## export JAVA_HOME="/usr/java/jdk1.7.0_55" ## export JAVA_HOME JRE ## export JAVA_HOME="/usr/java/jre1.7.0_55"
Install Oracle Java JDK/JRE 7u55 on Fedora 20/19, CentOS/RHEL 6.5/5.10,码迷,mamicode.com
Install Oracle Java JDK/JRE 7u55 on Fedora 20/19, CentOS/RHEL 6.5/5.10
标签:com http style class div img code java c size t
原文地址:http://www.cnblogs.com/dieangel/p/3698941.html