How to Install Oracle Java JDK 7 for Fedora 21/22/23/24/25 Linux Easy Visual-Guide

February 20, 2016 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Oracle JDK 7 Quick Start for Fedora Linux

The Guide Shows You Step-by-Step How to Install Oracle-Sun Java JDK 7 Release for Fedora LinuxDesktop/Server 32/64-bit Desktop.

After Installing you will need to Use the update-alternatives Tool to Update your System Java to Sun SE JDK 7.

The Oracle Java JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java platform.

The Screenshots of Installation Correspond to the Install on a Fedora KDE4 Desktop but the Procedure on Gnome, Xfce, Lxde… Works Just the Same.

Take the Time of Carefully Reading and Executing the How to Install Oracle JDK 8+ on Fedora Linux Instructions Contained Here and All should Work Like a Breeze.

Install Oracle JDK 7 on Fedora KDE4 Linux - Featured
  1. Download Oracle-Sun Java SE JDK 7 for Linux

    Oracle JDK x86/x64 .rpm
  2. Open a Shell session

    (Press “Enter” to Execute Commands)

    Install Oracle JDK 7 on Fedora KDE4 Linux - Open Terminal
  3. Installing Oracle Java JDK 7
    Login as SuperUser

    sudo su

    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    Access the Target directory

    cd ~/Downloads

    Then to SetUp Oracle JDK 7 for Fedora

    dnf install ./jdk-7*.rpm
  4. Updating System Java to Oracle JDK
    You can also copy , paste and execute commands

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

    Checking or Setting the System Java Version in Use with

    update-alternatives --config java

    And for the Java Compiler instead:

    sudo update-alternatives --config javac

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

  5. Testing Java JDK 7 Installation
    Exit from the SuperUser session

    java -version

    In the output there is trace of the type of Java installation…

  6. (Optional) Set the Java Environment Variable
    Edit the Bash configuration file

    nano $HOME/.bashrc


    export JAVA_HOME=/usr/java/jdk1.<X.Y_uZ>

    Just replace <X.Y_uZ> with the Installed JDK Release
    Ctrl+x to Save & Exit from nano :)

    source $HOME/.bashrc
  7. How to Install Oracle Java Browser Plug-In

    Install Oracle Java Firefox PlugIn

Guides to Installing the Tomcat 7 Server on Linux: Link Contains Instructions to Install the Tomcat 7 Server on Linux.

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