How-to Install Custom Oracle Java JDK 7 on Linux Sabayon 13-14 32/64bit Desktop Easy Visual-Guide

March 2nd, 2014 by thelinuxevangelist

Install Oracle JDK 7 Sabayon 13-14 Linux




The Tutorial Shows You How-to Install and Getting-Started with the Latest Oracle-Sun Official Java JDK 7 32/64bit for Linux Sabayon 13.X/14.X Xfce/KDE/Gnome x86/amd64 Desktop.

The Process is a Little Beat Tedious but it Simply Give you the Freedom to Know and to Choose Freely which JDK to Install.)

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 7 Sabayon 13-14 Linux - Featured
  1. Download Oracle-Sun Java SE JDK 7 for Linux:

    Get Oracle JDK 7 x86/x64.tar.gz
  2. Double-Click on the tar.gz Archive

    Install Oracle JDK 7 Sabayon 13-14 Linux - tar.gz Extraction 1

    Extract it Into the /tmp Folder.

    Install Oracle JDK 7 Sabayon 13-14 Linux - tar.gz Extraction Path

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

    Install Oracle JDK 7 Sabayon 13-14 Linux - Mate Open Terminal
  4. How-to Install Latest Eclipse Java IDE on Linux Sabayon:

    Install Eclipse Java for Sabayon
  5. Relocate Oracle JDK 7

    su 

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

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

    Then to shift the Oracle JDK 7 contents

    mv /tmp/jdk1.7* /opt
  6. Make a New Java JDK 7 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 7u[x]"
    JAVA_HOME="/opt/jdk1.7.[x_y]"
    JDK_HOME="/opt/jdk1.7.[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.7"
    # 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-7"
    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 7

    Make a Symlink

    ln -s /opt/jdk1.7.0_0X//usr/lib/jvm/oracle-sun-jdk7uX

    Find the New JDK 7 Installation

    java-config -L

    Switch System Java to the New Manually Installed JDK 7

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

    Test JDK 7 Installation

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

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

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


Comments are disabled