Install Oracle Java 7u79/80 on Fedora 23/22, CentOS/RHEL 7.1/6.7/5.11

Please note: This guide still working normally if you want install Sun/Oracle Java 7, but if you want Java 8 version, then check Install Oracle Java JDK/JRE 8 on Fedora, CentOS/RHEL.

This is guide, howto Install Sun/Oracle Java JDK and JRE 7 CPU (7u79) and PSU (7u80) on Fedora 23/22/21/20/19/18/17/16/15/14/13/12, CentOS 7.1/6.7/5.11, Red Hat (RHEL) 7.1/6.7/5.11. Read more, what is difference between CPU and PSU release.

If you’re looking instruction for Sun/Oracle Java JDK/JRE version 6 installation on Fedora 20/19/18, CentOS/Red Hat (RHEL) 6.5/5.10, please check this guide.

What’s new in Sun/Oracle Java 7

  • VM
    • Compressed 64-bit object pointers
    • Garbage-First GC (G1)
    • JSR 292: VM support for non-Java languages (InvokeDynamic)
  • Lang
    • JSR 294: Language and VM support for modular programming
    • JSR 308: Annotations on Java types
    • JSR TBD: Small language enhancements (Project Coin)
    • JSR TBD: Project Lambda
  • Core
    • Modularization (Project Jigsaw)
    • Upgrade class-loader architecture
    • Method to close a URLClassLoader
    • Unicode 5.1
    • Concurrency and collections updates (jsr166y)
    • JSR 203: More new I/O APIs for the Java platform (NIO.2)
    • SCTP (Stream Control Transmission Protocol)
    • SDP (Sockets Direct Protocol)
    • Elliptic-curve cryptography (ECC)
  • Client
    • XRender pipeline for Java 2D
    • Nimbus look-and-feel for Swing
    • Swing JLayer component
  • Web
    • Update the XML stack

Read full info from here.

Install Sun/Oracle Java JDK/JRE 7u79/80 on Fedora 23/22/21/20, CentOS/Red Hat (RHEL) 7.1/6.7/5.11

1. Download Sun/Oracle Java JDK/JRE 7u79/80 32-bit/64-bit RPM packages

Download Sun/Oracle Java 7u79 or 7u80 from here Select rpm package (jdk-7u79-linux-i586.rpm, jdk-7u79-linux-x64.rpm, jre-7u79-linux-i586.rpm or jre-7u79-linux-x64.rpm) or (jdk-7u80-linux-i586.rpm, jdk-7u80-linux-x64.rpm, jre-7u80-linux-i586.rpm or jre-7u80-linux-x64.rpm).

2. Change to root user.

3. Install Java JDK or JRE package

4a. Install Sun/Oracle JDK java, javaws, (for Firefox/Mozilla) and javac with alternatives –install command

Use Java JDK latest version (/usr/java/latest)

Use Java JDK CPU absolute version (/usr/java/jdk1.7.0_79)

Use Java JDK PSU absolute version (/usr/java/jdk1.7.0_80)

4b. Install Sun/Oracle JRE java, javaws and (for Firefox/Mozilla) with alternatives –install command

Use Java JRE latest version (/usr/java/latest)

Use Java JRE CPU absolute version (/usr/java/jre1.7.0_79)

Use Java JRE PSU absolute version (/usr/java/jre1.7.0_80)

5. Check current java, javac, javaws and versions

Note: Check with restarting Mozilla Firefox and writing about:plugins on address bar.
Java 7 Browser Plugin Fedora 18 Firefox 17

Java 7 console output on Fedora 18:
Java 7 on Fedora 18 Console Output

6. Swap between OpenJDK and Sun/Oracle Java JDK/JRE 6 and 7 versions


Note: java with [+] is currently on use


Note: java with [+] is currently on use (32-bit) (64-bit)


Note: java with [+] is currently on use

Post-Installation Setup

Add JAVA_HOME environment variable to /etc/profile file or $HOME/.bash_profile file

Java JDK and JRE latest version (/usr/java/latest)

Java JDK and JRE absolute version (/usr/java/jdk1.7.0_79)

Java JDK and JRE absolute version (/usr/java/jdk1.7.0_80)

Share this post


  1. Hello, nice tutorial.

    I have a issue, I want to know how can I remove any version of JAVA installed in my System manually and sets my system cleans that the first time?.


  2. Nice article.

    The only bad thing is that its difficult to read the dark blue on dark grey background for the syntax. Otherwise its a good article.

  3. Most consistent tutorial for Fedora! Thanks!

  4. y have this error

    javaws: no se encontró la orden
    in english
    javaws: command not found

    • Hi epagano,

      Could you tell little more what you tried to install (JDK or JRE) and what commands you run?



  1. Install Sun/Oracle Java JDK/JRE 7 (b108) on Fedora 13/CentOS 5.5 … | java - [...] wiÄ™cej: Install Sun/Oracle Java JDK/JRE 7 (b108) on Fedora 13/CentOS 5.5 … fedora, jre, main, main-guide, rhel, …
  2. Install Sun/Oracle Java JDK/JRE 6u26 on Fedora 15, CentOS/RHEL 5.6/6 - [...] Install Sun/Oracle Java JDK/JRE 6u26 on Fedora 15, CentOS/RHEL 5.6/6By JR – Published: July 29, 2010 – Last Updated: …
  3. Android SDK r12 and Eclipse ADT on Fedora 15/14, CentOS/Red Hat (RHEL) 6 - [...] 1.1 Install Sun/Oracle Java 7 JDK/JRE [...]
  4. Create Full Screen Graphic Displayer - Page 2 - [...] used to barrel ahead willy nilly People say I'm not doing my work I'm sorry but I found this …
  5. NetBeans 7.0.1 / 7.1 RC1 on Fedora 16/15, CentOS/RHEL 6/5.7 - [...] Sun’s Java, because I think NetBeans works faster with Sun’s Java. Here is the guide, howto install Sun/Oracle Java …
  6. Installing Java on CentOS 6 and configuring it to use for PHPStrom | Simple Coder - [...] [...]
  7. java working but not in firefox - [...] again. I found this very useful when I set up my java, complete with an alternatives chooser: -- …
  8. How do I install Java on CentOS 6.2? - [...] you want to install JRE on CentOS, follow the steps in this link. I have used this in the …
  9. Install Oracle Java JDK/JRE 8u5 on Fedora 20/19, CentOS/RHEL 6.5/5.10 - […] you’re looking installation instruction for older Oracle Java versions, then check Install Sun/Oracle Java JDK/JRE 7 on Fedora 20/19/18, …

Submit a Comment

Your email address will not be published. Required fields are marked *