首页 > Linux操作系统 > Linux操作系统 > Oracle Linux JRE Study

Oracle Linux JRE Study

原创 Linux操作系统 作者:chncaesar 时间:2013-10-24 11:48:09 0 删除 编辑
Oracle Linux 6 U3 comes with Open-JDK 1.6 and 1.7, 1.7 is the default jvm.
java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (rhel- u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
 Both open-JDK 1.6 and 1.7 are installed under: /usr/lib/jvm/
Oracle Linux uses "alternatives" to manage soft links.
alternatives --config java         --Select a default from all installed jre
alternatives --display java
To install JRE 1.6.0_4 64bit:
1. Download rpm.bin from
2. Login as root
3. chmod +x
4. ./jre-6u45-linux-x64-rpm.bin
By default, Oracle JRE is installed in /usr/java/
5. Install with alternatives --install command
alternatives --install /usr/bin/java java /usr/java/jre1.6.0_45/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_45/bin/javaws 20000
alternatives --install /usr/lib64/mozilla/plugins/ /usr/java/jre1.6.0_45/lib/amd64/ 20000
alternatives --config java      --Select newly installed jre
alternatives --config javaws  --Select newly installed jre
6. Change user to oracle, and set $JAVA_HOME in your .profile.
JAVA_HOME=/usr/java/jre1.6.0_45/; export JAVA_HOME
source ~/.bash_profile
7. Verify
java -version
Open firefox(64 bit) and type "about:plugins" in the address bar.

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录


  • 博文量
  • 访问量