How to Install Oracle JDK 8 Fedora GNU/Linux Easy Guide

April 23, 2019 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Oracle JDK 8 Fedora - Installation

  1. 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:

    rpm -ivh ./jdk-8-linux*.rpm
  2. 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. :)

  3. 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:

  4. Finally, Test New Java JDK 8 Installation

    java -version
  5. 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 the Latest IntelliJ for Fedora


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

QuickChic Theme • Powered by WordPress