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

March 26th, 2014 by thelinuxevangelist

Install Oracle JDK 8 Sabayon 12-13-14 Linux




The Tutorial Shows You How-to Install and Getting-Started with the Latest Oracle-Sun Official Java JDK 8 for Linux Sabayon 12.x/13.x/14.x 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.)

To Make the Entire Process Easier to Visualize and Retain the Post Includes the Basic Screenshots of the Essentials Steps Involved.

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

Install Oracle JDK 8 Sabayon 13-14 Linux - Featured

    Download Oracle Java SE JDK8 for Linux:

    Oracle JDK8 i586/x8664 tar.gz
  1. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Install Oracle JDK 8 Sabayon 13-14 Linux - Mate Open Terminal
  2. 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/
  3. How-to Install Latest Eclipse Java IDE on Linux Sabayon:

    Install Eclipse Java for Sabayon
  4. Relocate Oracle JDK 8

    su 

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

    chown -R root:root /tmp/jdk1.8*
    mv /tmp/jdk1.8* /opt
  5. 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

  6. 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
  7. How-to Install Latest Eclipse IDE JEE on Linux Sabayon:

    Install Eclipse JEE for Sabayon
(Visited 94 times, 1 visits today)
Share on Tumblr

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


Comments are disabled