How-to Install Oracle-Sun JDK 8 on Linux Solus Easy Visual-Guide

January 24th, 2017 by thelinuxevangelist

Oracle JDK 8 Quick-Start on Solus

Hello Solus User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java JDK 8 on Linux Solus 32/64-bit Desktop.

After Installing you will need to Use the update-alternatives Tool to Update your System Java to JDK 1.8.

The JDK is a superset of the JRE, and contains everything in the JRE, plus tools such as compilers and debuggers for development.

The Content give Focus Only to the Essentials Instructions and Commands to make it Easier to Understand;)

Installing Oracle JDK 8 for Solus - Featured
  1. Download Oracle Java SE JDK 8 for Linux:

    JDK 8 32/64-bit Linux tar.gz
  2. Find and Double-Click on the tar.gz Archive

    Java JDK 8 tar.gz Extraction 1

    Extract it Into the /tmp Folder.

    Java JDK 8 tar.gz Extraction Path

  3. Open a Terminal Window
    (Press “Enter” to Execute Commands)

    Linux Solus 1.2 Gnome Open Terminal
  4. Relocate Oracle JDK 8


    If Got “User is Not in Sudoers file” then Look:

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

    The above command is used to create a jvm directory if not already there.
    Set the SuperUser as howner:

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

    Reiterate the Execution Permission over the Java binaries

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

    Finally Shift the Java contents with

    mv /tmp/jdk1.8* /usr/lib/jvm/
  5. Installing Oracle Java JDK 8

    update-alternatives --install \
    /usr/bin/java java /usr/lib/jvm/jdk1.8*/bin/java 1065
    update-alternatives --install \
    /usr/bin/javac javac /usr/lib/jvm/jdk1.8*/bin/javac 1065
    update-alternatives --install \
    /usr/bin/jar jar /usr/lib/jvm/jdk1.8*/bin/jar 1065
    update-alternatives --install \
    /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8*/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 Reference Number on First Column. :)
    Last achive the SuperUser session with:

  6. Getting-Started and Running with JDK 8:

    Quick Start Tutorial for JDK 8 Development

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