How-to Install Oracle JDK 8 Fedora Easy Guide

March 16th, 2014 by thelinuxevangelist

Fedora Oracle JDK 8 Installation




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

First of all the Powerful Java 8 Features:

  • LAMBDA Expressions Programming
  • The Stream API
  • The Nashorn Javascript Engine

To the How-to Install Oracle JDK 8 on Fedora Linux Bottom there is a Link for Quick Start with Java JDK 8 Development and also to Install the IntelliJ IDEA for Fedora Linux.

Especially relevant: 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 - Featured
  1. First Open a Shell session
    (Press “Enter” to Execute Commands)

    How-to Install Oracle JDK 8 Fedora - Open Terminal Window

  2. Download Oracle Java SE JDK8 for Linux:

    Oracle JDK8 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 the following commands shorter):

    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:

    exit

    Edit the Bash environment Configuration file:

    nano $HOME/.bashrc

    Append:

    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:

    bash
  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: , , , , , , , , , , , , , , , , , , ,