如何在 Fedora 14 上安装 Sun Java,而不是默认的 OpenJDK?
答案1
- 去http://www.oracle.com/technetwork/java/javase/downloads/index.html
- 下载 JDK
- 选择Linux x64平台
- 下载 RPM
jdk-6u23-linux-x64-rpm.bin
sudo sh jdk-6u23-linux-x64-rpm.bin
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
完整性检查:
[root@server ~]# java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
享受!