How to Install Oracle JRE 10 on Ubuntu 16.04 Xenial Easy Guide

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

Oracle JRE 10 Ubuntu 16.04 Installation Guide

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

And with the Java Runtime Environment 10 for Ubuntu 16.04 Installation you’ll be able to Run Java Software.

Furthermore, to SetUp Oracle JRE 10 on Ubuntu 16.04 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 Ubuntu 16.04 Xenial 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 Ubuntu 16.04 - Featured
  1. Open a Shell session
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    How to Install Oracle  Java JRE 10 on Ubuntu 16.04 - 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 Ubuntu 16.04 - 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 Ubuntu 16.04 - JRE Configuration

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


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