How-to Install Oracle JRE 9 on Linux Elementary OS Easy Guide

May 2nd, 2017 by thelinuxevangelist

Oracle JRE 9 Quick-Start for Elementary OS




Hello Elementary User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java SE JRE 9 on Elementary OS 32/64bit GNU/Linux Desktop.

To SetUp Oracle JDK you will need to Use the update-alternatives Tool to Update your System Java to 1.9 JRE9.

At this time the Oracle JRE 9 Installation for GNU/Linux is based on a Early Access Snapshot




Furthermore to Make the Process Easier to Visualize the Post Includes the Basic Screenshots of the Steps Involved.

The Content and Details of How-to Install Oracle JRE 9 on Elementary OS are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;)

Getting-started with Oracle JRE 9 on Elementary OS - Featured
  1. Open a Terminal Shell emulator window
    (Press “Enter” to Execute Commands)

    Installing Oracle JRE 9 on Elementary OS - Loki Pantheon Open Terminal
    Search into Apps.
  2. Download Oracle Java SE JRE 9 for GNU/Linux:

    Oracle JRE 9 i586/x8664 tar.gz
  3. Double-Click on the tar.gz Archive and Extract into /tmp
    Or from Shell:

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

    Install Oracle JRE 9 on Elementary OS - Java JRE 9 tar.gz Extraction Path

  4. Relocate Java JRE 9

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution
    Make a jvm Directory if Not already there with:

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

    Set the root SuperUser as Owner:

    chown -R root:root /tmp/jre-9

    Reiterate the Execution Permission over the Java binaries:

    chmod -R +x /tmp/jre-9/bin

    Finally Shift the Java content with:

    mv /tmp/jre-9 /usr/lib/jvm/
  5. Installing Oracle Java JRE 9
    You can directly Copy & Paste the Commands into Terminal…

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

    Checking or Setting the System Java Version in Use with:

    update-alternatives --config java

    To Switch of Java Version Just Enter the Selection Number on First Column. :)
    getting-started with Oracle JRE 9 on Elementary OS - JRE Configuration

  6. (Optional) Setting JAVA_HOME User Environment Variable

    su [myUserName]

    Edit the Bash environment Configuration file

    nano $HOME/.bashrc

    Append:

    export JAVA_HOME=/usr/lib/jvm/jre-9

    Check the Installed Java 9 Version exact PATH with:

    ls /usr/lib/jvm/

    Ctr+x to Save & Exit from nano Editor :)
    Load New Bash Config:

    bash
  7. Test New Java JRE 9 Installation

    java -version
  8. How-to Install Netbeans 8 IDE for Java 9 on Elementary OS:
    Setup NetBeans Java for Linux.

(Visited 72 times, 1 visits today)
Share on Tumblr

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


Comments are disabled