How-to Install Latest Oracle-Sun Java JDK 7 x64 for Linux Fedora 16 Gnome 64bit Easy Visual-Guide

December 12th, 2012 by Regaz



The Guide Shows You How-to Install the Latest Oracle-Sun Java SE JDK 7 64bit Release on Fedora Linux 16 x8664 Gnome3 Desktop.

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 16 Gnome Desktop :)

The Screenshots of Installation Correspond to the Install on a Fedora 16 Gnome3 Desktop but the Procedure on KDE, XFCE, Lxde is Similar…

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 x8664.rpm
  2. Open Terminal Window
    (Press “Enter” to Execute Commands)
    Fedora Linux Gnome3 Open Terminal
  3. Installing Oracle-Sun Java JDK
    su 

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

    cd </path/2>to>jdk*.rpm
    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…”

  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

    Append:

    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. How-to Install Apache Tomcat7 Server on Fedora Linux

(Visited 1 times, 1 visits today)
Share on Tumblr

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