How to Install Oracle JRE 10 on Debian Stretch 9 Easy Guide

August 21, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Oracle JRE 10 Debian Stretch Installation Guide

Welcome Debian User! The Tutorial Shows You Step-by-Step How to Install Oracle-Sun Java SE JRE 10 on Debian Stretch 9 LTS 32/64-bit GNU/Linux Desktop.

And with the Java Runtime Environment 10 for Debian Stretch Installation you’ll be able to Run Java Software and Programs.

Furthermore, to SetUp Oracle JRE 10 on Debian Stretch you will need to Use the update-alternatives Tool to Update your System Java to 1.10 JRE 10.

Finally, the Contents and Details of How to Install Oracle JRE 10 on Debian Stretch 9 are Expressly Minimal to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;)

How to Install Oracle  Java JRE 10 on Debian Stretch - Featured
  1. Open a Shell Terminal emulator window
    (Press “Enter” to Execute Commands)

    How to Install Oracle Java JRE 10 on Debian Stretch - Debian Gnome3 Open Terminal
  2. Download Oracle Java SE JRE 10 for GNU/Linux:

    Oracle JRE 10 i586/x8664 tar.gz
  3. Then Extract into /tmp
    Eventually Double-Click on the tar.gz Archive on File Manager
    Or from Shell:

    tar xvzf ~/Downloads/jre-10*.tar.gz -C /tmp/

    How to Install Oracle  Java JRE 10 on Debian Stretch - Java JRE 10 tar.gz Extraction Path

  4. Next

    Relocate Java JRE 10

    First Make a jvm Directory if Not already there with:

    sudo if [ ! -d "/usr/lib/jvm" ]; then mkdir /usr/lib/jvm; fi

    Set the root SuperUser as Owner:

    sudo chown -R root:root /tmp/jre-10

    Reiterate the Execution Permission over the Java binaries:

    sudo chmod -R +x /tmp/jre-10/bin

    Finally, Shift the Java contents with:

    sudo mv /tmp/jre-10 /usr/lib/jvm/
  5. Finally, Setup Oracle Java JRE 10
    You can directly Copy & Paste the Commands into Terminal…

    sudo update-alternatives --install \
    /usr/bin/java java /usr/lib/jvm/jre-10/bin/java 1065
    sudo update-alternatives --install \
    /usr/bin/javaws javaws /usr/lib/jvm/jre-10/bin/javaws 1065

    Checking or Setting the System Java Version in Use with:

    sudo 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. :)
    How to Install Oracle  Java JRE 10 on Debian Stretch - JRE Configuration

  6. How to Install Netbeans 8 IDE for Java 10 on Debian:
    Setup NetBeans Java for Linux.


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