How to Install Oracle-Sun Java JDK 7 X86 on Linux Fedora 17 Xfce 32bit Desktop Easy Visual-Guide

December 12, 2012 | By Regaz.

You are Welcome! The Tutorial shows you Step-by-Step How to Install the Latest Oracle-Sun Official Java JDK 7 SE 32-bit Release for Fedora 17 Xfce 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 How to Install the New Downloaded .rpm Packages with Dependencies on Fedora 17 Xfce Desktop :)

The Screenshots of Installation Correspond to the Install on a Fedora 17 Xfce Desktop but the Procedure on KDE, GNOME, Lxde… Should Work Identically.

Finally, to the article Bottom there is a Link for Installing the Tomcat 7 Java Server on Fedora 18 Linux.

How to Install Oracle Java JDK 7 on Mint GNU/Linux Distro
  1. Download Oracle-Sun Java SE JDK 7:

    Oracle JDK 7 Linux x86.rpm
  • Open Terminal Window
    (Press “Enter” to Execute Commands):

    Fedora 17 Xfce - Open Terminal
  • Installing Oracle-Sun Java JDK


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

    cd /[path2]/jdk*.rpm
    sudo yum install jdk*.rpm

    YUM will Automatically Manage and Download the Eventual Dependencies Also for Local Packages :)

    You Can Safely Ignore Eventual Installation Errors: “Could not open input file…”.

  • 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

    And for the Java Compiler instead:

    sudo update-alternatives --config javac

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

  • 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
  • How to Install Oracle Java Browser Plug-In:

    Install Oracle Java Firefox PlugIn

  • Guide to Installing the Tomcat 7 Server on Fedora:

    QuickChic Theme • Powered by WordPress