entos 6 下 firefox 的jre

摘要: 一、下载i386 http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-i586.rpmamd64 http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-x64.rpm二、安装并配置1、删除原有系统 ...

101057i1bcbbvzilccj2d2.jpg



一、下载
i386
http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-i586.rpm
amd64
http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-x64.rpm

二、安装并配置
1、删除原有系统低版本java,视情况删除
yum remove java
2、安装 
rpm -ivh 7u17-b02/jdk-7u17-linux-i586.rpm or rpm -ivh 7u17-b02/jdk-7u17-linux-x64.rpm
3、配置
(1)、java 环境
vi /etc/profile.d/java.sh
#!/bin/bash
JAVA_HOME=/usr/java/jdk1.7.0_17
JRE_HOME=$JAVA_HOME/jre
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/plugin.jar:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/jre/lib/jce.jar
export JAVA_HOME
export JRE_HOME
export CLASSPATH
export PATH
(2)、firefox jre plugins
sudo ln -s /usr/java/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins/
or
sudo ln -s /usr/java/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
4、查看
mozilla firefox
about:plugins

5、测试
http://java.com/zh_CN/download/installed.jsp


你可能感兴趣的:(java,jre,firefox)