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

January 24th, 2017 by thelinuxevangelist

Oracle JDK 8 QuickStart on SolusOS

Hello SolusOS 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 SolusOS 32/64bit 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 and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut Easier to Read & Digest ;)

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

    JDK 8 32/64bit 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 SolusOS 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 holder:

    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 content 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 Getting-Started Tutorial for JDK 8 Development
(Visited 41 times, 1 visits today)
Share on Tumblr

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

Comments are disabled