How-to Install Oracle JDK 8 on Slackware 13.x-14.x 32/64bit Easy Guide

March 20th, 2014 by thelinuxevangelist

Install Oracle JDK 8 on Slackware 13.X/14.X i386/amd64

The Guide Shows You in Easy-Steps How-to Install and Getting-Started with Oracle-Sun Official Java SE JDK 8 i586/x8664 for Slackware Linux 32/64bit Desktop.

To SetUp You will need to Update the System Environments Variables to Java 1.8 JDK.

Some Java 8 Features:

  • LAMBDA Expressions Programming
  • The Stream API
  • The Nashorn Javascript Engine

To the How-to Install Oracle JDK 8 on Slackware Linux Bottom there is a Link for Quick Getting-Started with Java JDK 8 Development and also to Install the Java Web-Server Tomcat 7 for Slackware Linux.

Furthermore to Make the Process Easier to Visualize the Post Includes the Basic Screenshots of the Steps Involved.

The Content and Details of How-to Install Oracle JDK 8 on Slackware Linux are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;)

Install Oracle JDK 8 on Slackware 13.X/14.X - Featured
  1. Download Oracle Java SE JDK8 for Linux:

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

    Cmd+Alt+t and Search for “term”

    Linux Slackware 12 KDE4 Open Terminal
  3. Double-Click on the JDK8 tar.gz Archive and Extract into
    /tmp

    Install Oracle JDK 8 on Slackware 13.X/14.X - Java JDK 8 tar.gz Extraction Path

    Or from Shell:

    tar xvfz ~/Downloads/jdk-8*.tar.gz -C /tmp/
  4. Relocate Java JDK 8

    sudo su

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

    if [ ! -d "/usr/lib/jvm" ]; then mkdir /usr/lib/jvm; fi
    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. Updating System Env Variables and Path

    nano /etc/profile

    Append:

    export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_[xy]
    export PATH="$JAVA_HOME/bin:$PATH"
    

    Just Substitute the Java JDK Update Version to [xy].

    Ctrl+x to Save and Exit from nano

    To Load New Env. Settings:

    source /etc/profile

    Check if your New Java is Working :)

    java -version
  6. How-to Install Eclipse Java on Slackware

    Eclipse Java IDE Install
  7. Now Thanks to Oracle-Sun Corporation
    You are Able to Successfully Start Up with Java 8 Development.

    Welcome to Java 8 Challenge! ;)

    Installing Apache Tomcat 8 Server on Slackware

    Installing Tomcat8 for Slackware

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