How to Install Oracle JDK 8 on Debian Stretch 9 Easy Guide

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

Installing

  1. 2. Downloading

    Download Oracle Java SE JDK8 for Linux

    Oracle JDK8 i586/x8664 tar.gz
  2. 3. Extracting

    Then Extract into /tmp
    Eventually Double-Click/Right-Click and Open with Archive Manager:

    Install Oracle JDK 8 on Debian Stretch 9 - Java JDK 8 tar.gz Extraction Path
    Or from Shell:

    tar xvfz ~/Downloads/jdk-8*.tar.gz -C /tmp/
  3. 4. Installing

    Then to Install Oracle JDK 8
    First Make a jvm Directory if Not already there with:

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

    Set the root superUser as owner:

    sudo chown -R root:root /tmp/jdk1.8*

    Again reiterate the Execution Permission also over the Java binaries:

    sudo chmod -R +x /tmp/jdk1.8*/bin

    Finally, to Shift the Java contents:

    sudo mv /tmp/jdk1.8* /usr/lib/jvm/

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