2012年12月22日 星期六

JRE install in CentOS6.2

You may be need a java environment after you Installed a CentOS . Some website with Java but your browser didn't support it by default.
1) download JRE and install it
    jre-XuYY-linux-x64.rpm from http://java.com/en/download/index.jsp
    #my download file is :   jre-7u10-linux-x64.rpm
    yum localinstall  jre-7u10-linux-x64.rpm -y
2) environment setting
   vi /etc/profile
    :
    :

   export JAVA_HOME=/usr/java/jre1.7.0_10
   export PATH=$JAVA_HOME/bin:$PATH
   export CLASSPATH=$JAVA_HOME/lib:.


3) Java library for Browser


   [root@localhost Downloads]# find / -name libnpjp2.so
       /usr/java/jre1.7.0_10/lib/amd64/libnpjp2.so

   [root@localhost Downloads]# mkdir -p /opt/google/chrome/plugins   #(google chrome)
   [root@localhost Downloads]# cd /opt/google/chrome/plugins

   [root@localhost Downloads]# mkdir -p /usr/lib/mozilla/plugins   #(mozilla firefox)
   [root@localhost Downloads]# cd /usr/lib/mozilla/plugins

   [root@localhost plugins]# ln -s /usr/java/jre1.7.0_10/lib/amd64/libnpjp2.so


DONE

文章分類