How-to Install Oracle Java JDK 7 on OpenSUSE 42.x Leap 32/64bit Linux Easy Guide

November 21st, 2015 by thelinuxevangelist

Installing Oracle JDK 7 on OpenSUSE Linux

The Linux Tutorial Shows You How-to Install the Oracle-Sun Java JDK 7 SE Release for OpenSUSE 42.X Leap Gnome/KDE i686/x8664 GNU/Linux Desktop.

Take Note: At the Same Time I’m also Illustrating here the Easiest Way of Installing the New Downloaded .rpm Packages with Dependencies on OpenSUSE Linux Desktops :)

To the Article Bottom Link to Installing the Firefox Java Plugin and Eclipse for Java Development on OpenSUSE Linux.

Take the Time of Carefuly Reading and Executing the Instructions Contained Here and All should Work Like a Breeze :)

Install Oracle JDK 7 on OpenSUSE42.X - Featured
  1. Download Oracle-Sun Java SE JDK 7 for Linux:

    Oracle JDK7 Linux x86/x64 .rpm
  2. Open a Terminal Shell emulator window
    (Press “Enter” to Execute Commands)

    Install Oracle JDK 7 on OpenSUSE42.X - Open Terminal
  3. Installing Oracle Java JDK7
    cd </path/2>
    su -c "zypper install jdk1.7*.rpm"
  4. Managing Multiples Java Versions with update-alternatives
    sudo su

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

    zypper install update-alternatives
    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

    update-alternatives --config java

    To Switch of Java Version Just Enter the Selection Number
    on First Column. :)

  5. Optionally Set Java Environment Variable

    su <myUser>
    nano $HOME/.bashrc


    export JAVA_HOME=/usr/java/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 Eclipse for Java Developers on OpenSUSE:

    Installing Eclipse Neon for Java SE on OpenSUSE.

Share on Tumblr

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

Comments are disabled