How to Install Oracle JDK 8 on Sabayon Linux Step-by-Step Guide

March 24, 2019 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Oracle JDK 8 Sabayon Installation Guide

The Tutorial Shows You How to Install and Getting-Started with the Oracle-Sun Official Java JDK 8 for Sabayon GNU/Linux Xfce/KDE/Gnome x86/amd64 Desktop.

Sure the Process is a Little Beat Tedious but it Simply Give you the Freedom to Know How to Get Installed the Official Oracle JDK 8.)

And this Visual Guide includes the Basic Screenshots of All GUI Steps involved.

The Content give Focus Only to the Essentials Instructions and Commands to make it Easier to Follow.

Install Oracle JDK 8 Sabayon 13-14 Linux - Featured
  1. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Install Oracle JDK 8 Sabayon Linux - Mate Open Terminal
  2. Download Oracle Java SE JDK8 for Linux

    Oracle JDK8 i586/x8664 tar.gz
  3. Double-Click on the JDK8 tar.gz Archive and Extract into
    /tmp

    Install Oracle JDK 8 on Sabayon 12.X/13.X/14.X - Java JDK 8 tar.gz Extraction Path
    Or from Shell:

    tar xvfz ~/Downloads/jdk-8*.tar.gz -C /tmp/
  4. How to Install the Latest Eclipse Java IDE on Linux Sabayon

    Install Eclipse Java for Sabayon
  5. Relocate Oracle JDK 8

    su 

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

    sudo chown -R root:root /tmp/jdk1.8*
    mv /tmp/jdk1.8* /opt
  6. Make a New Java JDK 8 Config File
    nano /usr/share/java-config-2/vm/oracle-sun-jdk7u

    Substitute to the X the Concord Java Update Version.

    Insert something like Here Below and Just Substituting the JDK Paths and Version Only in the First Three lines

    VERSION="Oracle-Sun JDK 8u[x]"
    JAVA_HOME="/opt/jdk1.8.[x_y]"
    JDK_HOME="/opt/jdk1.8.[x_y]"
    JAVAC="${JAVA_HOME}/bin/javac"
    PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
    LDPATH="${JAVA_HOME}/jre/lib/amd64/:${JAVA_HOME}/jre/lib/amd64/native_threads/:${JAVA_HOME}/jre/lib/amd64/xawt/:${JAVA_HOME}/jre/lib/amd64/server/"
    PROVIDES_TYPE="JDK JRE"
    PROVIDES_VERSION="1.8"
    # Taken from sun.boot.class.path property
    BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
    GENERATION="2"
    ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
    VMHANDLE="oracle-bin-8"
    BUILD_ONLY="FALSE"
    

    Ctrl+Shift+v to Paste Content into nano
    Ctrl+x to Save and Exit

  7. Updating the System to Custom Oracle Sun JDK 8

    Make a Symlink

    ln -s /opt/jdk1.8.0_0X/ /usr/lib/jvm/oracle-sun-jdk8uX

    Find the New JDK 8 Installation

    java-config -L

    Switch System Java to the New Manually Installed JDK 8

    java-config --set-system-vm oracle-sun-jdk7uX

    Test JDK 8 Installation

    java -version
  8. How to Install the Latest Eclipse IDE JEE on Linux Sabayon

    Install Eclipse JEE for Sabayon

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