How to Install Oracle Java JDK 7 on Fedora 19 Lxde 32/64-bit Easy Visual-Guide

November 19, 2013 | By the+gnu+linux+evangelist | Filed in: Uncategorized.

Install Oracle JDK 7 on Fedora 19 Lxde Linux

You are Welcome! The Tutorial Shows You Step-by-Step How to Install the Latest Oracle-Sun Official Java JDK 7 SE Release on Fedora 19 Lxde i686/x8664 Linux 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 19 Lxde Desktop :)

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

To the How to Install Oracle JDK 8+ on Fedora 19 Lxde Linux Bottom there is a Link for Installing the Tomcat 7 Java Server on Fedora 19 Linux.

Install Oracle JDK 7 on Fedora 19 Lxde 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 19 Lxde Linux - Extraction
  3. Open Terminal Window
    (Press “Enter” to Execute Commands)
    Install Oracle JDK 7 on Fedora 19 Lxde Linux - Open Terminal
  4. Relocate Oracle Java JDK

    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. Getting-Started:

    Getting-Started Quickly with JDK
  7. Guide to Installing the Tomcat 7 Server on Fedora:

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