How-to Install Oracle Java JDK 7 on SLES/SLED 11.x 32/64-bit Easy Guide

March 20, 2014 | By thelinuxevangelist | Filed in: Tutorial.

Install Oracle JDK 7 on SLES/SLED 11.x 32/64-bit

The Guide Shows You How-to Install the Latest Oracle-Sun Java JDK 7 SE 32bit Release for SUSE Linux Enterprise Server/Desktop 11.1/11.2/11.3 i686/x8664.

Especially relevant: At the Same Time I’m also Illustrating here the Easiest Way of Installing the New Downloaded .rpm Packages with Dependencies on SUSE Server :)

The Post Describe also How-to Manage Multiples Java JDK Versions by the “update-alternatives” Tool.

Java on OpenSUSE
  1. Download Oracle-Sun Java SE JDK 7 for Linux:

    Oracle JDK Linux x86/x64 .rpm
  2. Installing Oracle Java JDK

    su -c "zypper install jdk1.7*.rpm"
  3. Managing Multiples Java Versions with update-alternatives

    Find the Java JDK Version in Use:

    java -version

    To Switch the Java JDK Version:

    su -c "update-alternatives --config java"
  4. 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

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