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

November 21, 2015 | By thelinuxevangelist | Filed in: Tutorial.

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.

Especially relevant: 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 Carefully 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 JDK 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 JDK
    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

    sudo 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
    with

    update-alternatives --config java

    And for the Java Compiler instead:

    sudo update-alternatives --config javac

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

    exit
  5. Optionally Set Java Environment Variable

    su <myUser>
    nano $HOME/.bashrc

    Append:

    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 2019-06 R IDE for Java SE on openSUSE.


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