How to Install and Getting Started With Oracle-Sun Java JDK 7 X86 on Fedora 18 Xfce 32bit Linux Easy Visual-Guide

February 1, 2013 | By Duchateaux.

Hi! The Tutorial shows you Step-by-Step How to Install Latest Oracle-Sun Official Java JDK 7 SE 32-bit Release for Fedora 18 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 18 Xfce Desktop :)

The Screenshots of Installation Correspond to the Install on a Fedora 18 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.

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

    Oracle JDK x86.tar.gz
  2. Double-Click on Archive and Extract into /tmp Linux Lxde/Xfce JDK Extraction

  3. Open Terminal Window
    (Press “Enter” to Execute Commands):

    Fedora 18 Xfce - Open Terminal

  4. Relocate Oracle Java JDK

    su 

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

    if [ ! -d "/usr/lib/jvm" ]; then mkdir /usr/lib/jvm; fi

    The above command is used to create a jvm directory if not already there.

    sudo chown -R root:root /tmp/jdk1.7*

    Reiterate the Execution Permission over the Java binaries

    chmod -R +x /tmp/jdk1.7*/bin

    Finally, Shift the Java contents with

    mv /tmp/jdk1.7* /usr/lib/jvm/

  5. Updating System Java to Oracle JDK

    update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7*/bin/java 1065
    update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7*/bin/javac 1065
    update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.7*/bin/jar 1065
    update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/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. :)

  6. Optionally Set Java Environment Variable.

    su <myUser>
    nano $HOME/.bashrc

    Append:

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

    Ctrl+x to Save & Exit from nano :)

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

    Install Oracle Java Firefox PlugIn

  8. Guide to Installing the Tomcat 7 Server on Fedora:


QuickChic Theme • Powered by WordPress