Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you install Sun Java on Fedora 14, instead of the default OpenJDK?

share|improve this question
up vote 2 down vote accepted
  1. Go to
  2. Download JDK
  3. Choose Linux x64 for Platform
  4. Download the RPM jdk-6u23-linux-x64-rpm.bin
  5. sudo sh jdk-6u23-linux-x64-rpm.bin
  6. sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000

Sanity check:

[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)


share|improve this answer
Do I need to uninstall gcj, if so what is the best method? – fivetwentysix Apr 3 '11 at 3:08
No need as far as I know. Why should gcj be a problem? – Yuval A Apr 5 '11 at 10:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.