How-to Install Oracle Java JDK 7 for Fedora 20 KDE4 32/64bit Desktop Easy Visual-Guide

November 19th, 2013 by thelinuxevangelist

Install Oracle JDK 7 on Fedora 20 KDE4 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 20 KDE4 i686/x8664 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 20 KDE4 Desktop :)

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

Take the Time of Carefully Reading and Executing the How-to Install Oracle JDK 7 on Fedora 20 KDE4 Instructions Contained Here and All should Work Like a Breeze.

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

    Oracle JDK x86/x64 tar.gz
  2. Double-Click on Archive and Extract into /tmp Install Oracle JDK 7 on Fedora 20 KDE4 Linux - Extraction
  3. Open Terminal Window
    (Press “Enter” to Execute Commands)
    Install Oracle JDK 7 on Fedora 20 KDE4 Linux - Open Terminal
  4. Relocate Oracle Java JDK
    su 

    If Got “User is Not in Sudoers file” then Look: Solution

    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.

    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 content 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

    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

Guides to Installing the Tomcat 7 Server on Linux:

How-to Install Tomcat 7 on Linux
(Visited 2 times, 1 visits today)
Share on Tumblr

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


Comments are disabled