How to Install Oracle JDK 8 Fedora 28 Easy Guide

May 18, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Install Oracle JDK 8 Fedora 28

You are Welcome! This Guide Shows You in Easy-Steps How-to Install Oracle JDK 8 Fedora 28 32/64-bit GNU/Linux.

Firt of all, to Install Oracle JDK 8 on Fedora 28 you have Download the Linux Rpm Package from Oracle Website.

Then to SetUp Oracle JDK 8 on Fedora we make Use of the update-alternatives Tool to Update System’s Java.

Furthermore to Make the Process Easier to Visualize the Post Includes the Basic Screenshots of the Steps Involved.

Finally the Content of this guide is Expressly Reduced to Give Focus to the essentials Instructions and Commands.

How to Install Oracle JDK 8 Fedora 28 - Featured
  1. Open a Shell Terminal emulator window
    (Press “Enter” to Execute Commands)

    How to Install Oracle JDK 8 Fedora 28 - open terminal
  2. Download Oracle Java SE JDK 8 for Linux:

    Oracle JDK 8 i586/x8664 .rpm
  3. So to Install Oracle Java JDK 8 Package
    Access the target directory:

    cd $HOME/Downloads

    Login as SuperUser (This to make shorter the following commands):

    sudo su

    Then to Install Oracle JDK 8 for Fedora < 22:

    yum install ./jdk-8-linux*.rpm

    For Fedora 22+ instead:

    dnf install ./jdk-8-linux*.rpm
  4. Then Setup Oracle Java JDK 8
    (Simply copy & paste these commands)

    update-alternatives --install \
    /usr/bin/java java /usr/java/jdk1.8*/bin/java 1065
    update-alternatives --install \
    /usr/bin/javac javac /usr/java/jdk1.8*/bin/javac 1065
    update-alternatives --install \
    /usr/bin/jar jar /usr/java/jdk1.8*/bin/jar 1065
    update-alternatives --install \
    /usr/bin/javaws javaws /usr/java/jdk1.8*/bin/javaws 1065

    And Check/Set the System Java Version in Use with:

    update-alternatives --config java

    To Switch of Java Version Just Enter the Selection Number on First Column. :)

  5. Setting JAVA_HOME User Environment Variable (Optional)
    Achieve the SuperUser session:


    Edit the Bash environment Configuration file:

    nano $HOME/.bashrc


    export JAVA_HOME=/usr/lib/jvm/jdk1.8[uX]

    Replace the [uX] Looking for the Installed Java 8 Version with:

    ls /usr/lib/jvm/

    Ctr+x to Save & Exit from nano Editor :)
    And Load New Bash Configutation simply with:

  6. Finally Test New Java JDK 8 Installation

    java -version
  7. How-to Install Eclipse for Java 8 on Fedora

    Eclipse with JDK8 Installation

    Now Thanks to Oracle-Sun Corporation You are Able to Successfully Start Up with Java 8 Development.

    Welcome to Java 8 Challenge! ;)

    Installing Latest IntelliJ IDEA for Java Scala & Android on Fedora

    Install Latest IntelliJ for Fedora

Tags: , , , , , , , , , , , , , , ,