How-to Install Oracle-Sun Java JDK 8 on Manjaro Linux 64bit Easy Guide

April 1st, 2015 by thelinuxevangelist

Install Oracle JDK 8 on Manjaro 64bit Linux

Hello Manjaro User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java SE JDK 8 64bit on Manjaro x8664 GNU/Linux Desktop.

After Installing you will need to Update your System Env Variables and PATH to make Manjaro Aware of the Java JDK8 Installation.

To the Article Bottom there is a Link for Quick Getting-Started with Java JDK 8 Development on Manjaro.

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 on Manjaro 64bit Linux - Featured
  1. Download Oracle Java SE JDK 8 Linux Release:

    Oracle JDK8 x64.tar.gz
  2. Double-Click on the tar.gz Archive and Extract Into /tmp
    Install Oracle JDK 8 on Manjaro 64bit Linux - Extraction
  3. Open Terminal Window
    (Press “Enter” to Execute Commands)
    Install Oracle JDK 8 on Manjaro 64bit Linux - Xfce Open Terminal
  4. Relocate JDK8


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

    chmod +x /tmp/jdk1.8*/bin/*
    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. SetUp the Java JDK8 Environment Variables

    Get the Exact Path to Insert with:

    cd /usr/lib/jvm/jkd*

    Copy (Select & Ctrl+Shift+c) the Path to Paste (Ctrl+Shift+v) into the Config File:

    nano /etc/profile.d/
    export J2SDKDIR=/usr/lib/jvm/jdk1.8[x.y]
    export J2REDIR=$J2SDKDIR/jre
    export JAVA_HOME=$J2SDKDIR/

    Ctrl+x to Save & Exit :)

    nano /etc/profile.d/oraclejdk8.csh
    setenv J2SDKDIR=/usr/lib/jvm/jdk1.8[x.y]
    setenv J2REDIR=$J2SDKDIR/jre
    setenv JAVA_HOME=$J2SDKDIR/
  6. SetUp the Java Path

    Check if Another Jdk Releases is Already Installed:

    pacman -Q | grep jdk
    • If Yes
      First provide to Rename the Config Files in /etc/profile.d:

      mv /etc/profile.d/[javaPkg].sh \
      mv /etc/profile.d/[javaPkg].csh \

      Substitute the [javaPkg] with the Java Package Name.
      After LogOut and LogIn Again.
      And then provide to Modify the Simlinks to Java Executables:

      ln -fs $JAVA_HOME/bin/java /usr/bin/java
      ln -fs $JAVA_HOME/bin/javac /usr/bin/javac
      ln -fs $JAVA_HOME/bin/jre /usr/bin/jre
      ln -fs $JAVA_HOME/bin/javaws /usr/bin/javaws
    • Else if No
      Then will be Enough to Edit the Bash Config file for the User:

      nano ~/.bashrc


      export PATH="$JAVA_HOME/bin:$PATH"

      Then LogOut and LogIn Again

  7. Getting-Started with Oracle Java JDK 8 Development:

    Getting-Started Quickly with JDK 8
(Visited 416 times, 1 visits today)
Share on Tumblr

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

Comments are disabled