Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 2 down vote accepted
  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
  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)

Enjoy!

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

 
discard

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.