How-to Install Oracle-Sun Java JDK 7 on Linux Fedora 17 Gnome 32bit

July 20th, 2012 by Regaz

The Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java JDK 7 Release for Fedora Linux 17 Gnome3 i686 Desktop.

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

Especially relevant: At the Same Time I’m also Illustrating here the Easiest Way of Installing the New Downloaded .rpm Packages with Dependencies on Fedora 17 Gnome3 Desktop :)

The Screenshots of Installation Correspond to the Install on a Fedora 17 Gnome Desktop but the Procedure on KDE, XFCE… Should be Near Identical.

Following the Easiest and Practicable Way I have Expressly Excluded the Use of Terminal Commands here.

So Take the Time of Carefully Reading and Executing the Instructions Contained Here and All should Work Like a Breeze :)

Java Baloon
  1. Download Oracle-Sun Java SE JDK 7:

    Sun JDK 7 Linux i586.rpm
  2. Select the Open with Package Installer Option Or Double-Click After

    I Suppose that your Browser like Firefox will Prompt you About the Downloading Procedure to Follow like Here.

    Install Latest Java on Fedora 17 Gnome 1

    If Not Prompted then Double Click on tar.gz Archive…

  3. When the Download is Achieved you will be Automatically Prompted for Installing
    Install Latest Java on Fedora 17 Gnome 2

    Follow to Confirm and Authorize Also if you Are Warned About Installation of Unsigned Content

    Install Latest Java on Fedora 17 Gnome 2aInstall Latest Java on Fedora 17 Gnome Success

  4. Updating System Java to Oracle JDK
    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. Optionally Set Java Environment Variable

    su <myUser>
    nano $HOME/.bashrc


    export JAVA_HOME=/usr/lib/jvm/jdk1.<X.Y_uZ>

    Ctrl+x to Save & Exit from nano :)

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

    Install Oracle Java Firefox PlugIn

  7. Guides to Installing the Tomcat 7 Server on Linux:

    How-to Install Tomcat 7 on Linux

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