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

February 20th, 2016 by thelinuxevangelist

Oracle JDK 7 QuickStart for Fedora Linux

The Guide Shows You Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java JDK 7 Release for Fedora Linux 21/22/23/24 Desktop/Server 32/64bit 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 Carefuly Reading and Executing the How-to Install Oracle JDK 7 on Fedora Linux Instructions Contained Here and All should Work Like a Breeze.

Install Oracle JDK 7 on Fedora 21/22/23/24 KDE4 Linux - Featured
  1. Download Oracle-Sun Java SE JDK 7 for Linux:

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

    (Press “Enter” to Execute Commands)

    Install Oracle JDK 7 on Fedora 21/22/23/24 KDE4 Linux - Open Terminal
  3. Installing Oracle Java JDK 7
    Login as SuperUser

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution
    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 JDK7
    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

    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.

Share on Tumblr

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

Comments are disabled