Redhat Enterprise Linux 6.4 安裝Oracle JDK替換OpenJDK
缺省java版本為OpenJDK 1.7:
# java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
# update-alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
安裝Oracle JDK 1.7:
# rpm -ivh /mnt/hgfs/pub/jdk-7u45-linux-x64.rpm
update-alternatives新增Oracle JDK 1.7:
# update-alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_45/bin/java 1
更改預設JDK版本:
# update-alternatives --config java
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
3 /usr/java/jdk1.7.0_45/bin/java
Enter to keep the current selection[+], or type selection number: 3
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
3 /usr/java/jdk1.7.0_45/bin/java
Enter to keep the current selection[+], or type selection number: 3
# java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
轉載: http://blog.sina.com.cn/s/blog_71d9aee40101qg03.html
相關文章
- U盤啟動安裝Redhat Enterprise Linux 6.4RedhatLinux
- redhat 6.4 安裝oracle11g RAC 安裝RDACRedhatOracle
- Oracle 18c_for_Redhat6.4 安裝失敗OracleRedhat
- RedHat Enterprise Linux Server 5上安裝Oracle9iRedhatLinuxServerOracle
- oracle9204在redhat enterprise linux 5中安裝OracleRedhatLinux
- Redhat enterprise linux下安裝rlwrap工具RedhatLinux
- RedHat Enterprise Linux 6.4使用Centos 6 的yum源RedhatLinuxCentOS
- centos7 解除安裝openJDK 安裝jdk7CentOSJDK
- 安裝MySQL-Cluster7.2.5(redhat6.4)MySqlRedhat
- Linux 解除安裝openjdk 安裝oraclejdkLinuxJDKOracle
- 【Linux】Virtualbox 安裝 Red hat Enterprise Linux 6.4-64位Linux
- 在Linux操作下解除安裝,安裝redhat自帶的JDKLinuxRedhatJDK
- 安裝ORACLE ENTERPRISE LINUX 5OracleLinux
- RedHat 6.4原始碼方式安裝mysql5.5Redhat原始碼MySql
- 如何用新安裝的jdk替換掉Linux系統預設jdkJDKLinux
- Linux下jdk的安裝解除安裝切換LinuxJDK
- Linux安裝jdk及jdk版本之間切換LinuxJDK
- ORACLE ENTERPRISE LINUX 下安裝rlwrapOracleLinux
- Oracle 10g for Redhat Enterprise Server 5資料庫安裝Oracle 10gRedhatServer資料庫
- RedHat 7 yum源替換Redhat
- [linux]ubuntu下解除安裝openjdk並安裝sunjdkLinuxUbuntuJDK
- RedHat Enterprise AS4 硬碟安裝心得(轉)Redhat硬碟
- Vmware linux redhat6.4 安裝11g(11.2.0.1) 雙節點RACLinuxRedhat
- Oracle Enterprise Linux下安裝Oracle 12cOracleLinux
- Oracle Enterprise Linux 6下安裝Oracle 9204OracleLinux
- 在RedHat Linux 7.3下安裝Apache + PHP + Mysql + JDK + Resin (轉)RedhatLinuxApachePHPMySqlJDK
- oracle11g 安裝(redhat linux 5)OracleRedhatLinux
- Redhat Linux 9+Oracle 9.2 快速安裝RedhatLinuxOracle
- u盤安裝 oracle-linux redhat-linuxOracleLinuxRedhat
- Linux(CentOs6.4)安裝GitLinuxCentOSGit
- RedHat Enterprise AS4硬碟安裝步驟(轉)Redhat硬碟
- Oracle安裝部署之linux(redhat/centos)快速安裝oracle 11g racOracleLinuxRedhatCentOS
- oracle10g for Redhat Enterprise Server 5客戶端安裝[轉帖]OracleRedhatServer客戶端
- linux 安裝jdkLinuxJDK
- Linux安裝JDKLinuxJDK
- 64位RedHat Enterprise Linux安裝fcitx 4.0小企鵝輸入法RedhatLinux
- CentOS6.4安裝Oracle10.2.0.4CentOSOracle
- linux 解除安裝jdk和安裝LinuxJDK