How-to Install Oracle-Sun Java JDK 10 on Manjaro Linux Easy Guide

April 21st, 2018 by thelinuxevangelist

Install Oracle JDK 10 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 10 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 JDK10 Installation.

To the Article Bottom there is a Link for Quick Start with Java JDK 10 Development on Manjaro.

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

Install Oracle JDK 10 on Manjaro 64bit Linux - Featured
  1. Download Oracle Java SE JDK 10 Linux Release:

    Oracle JDK10 x64.tar.gz
  2. Double-Click on the tar.gz Archive and Extract Into /tmp
    Install Oracle JDK 10 on Manjaro 64bit Linux - Extraction
    Or from Shell:

    tar xvzf ~/Downloads/jdk-9*.tar.gz -C /tmp/
  3. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Install Oracle JDK 10 on Manjaro 64bit Linux - Xfce Open Terminal
  4. Relocate JDK 10

    su 

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

    chmod +x /tmp/jdk-10*/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/jdk-10*

    Reiterate the Execution Permission over the Java binaries

    chmod -R +x /tmp/jdk-10*/bin

    Finally Shift the Java content with

    mv /tmp/jdk-10* /usr/lib/jvm/
  5. Follow to Setup Needed Symlinks
    First Copy the Exact Path to Insert in:

    cd /usr/lib/jvm/jdk-10*
    pwd

    Select & Ctrl+Shift+c to Copy the Path :)

    cd ..

    Release the eventually existing Symlinks:

    unlink default
    unlink default-runtime

    For the JDK make:

    ln -s [copiedJdkPath] default

    Ctrl+Shift+v to Paste the Path.
    And for JRE:

    ln -s [copiedJdkPath] default-runtime

    With this you Should be Done!

  6. SetUp the Java JDK10 Environment Variables

    Get the Exact Path to Insert with:

    cd /usr/lib/jvm/jdk-10*
    pwd

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

    nano /etc/profile.d/oracleJDK10.sh
    export J2SDKDIR=[copiedJdkPath]
    export J2REDIR=$J2SDKDIR/jre
    export JAVA_HOME=$J2SDKDIR/
    

    Ctrl+x to Save & Exit :)

    nano /etc/profile.d/oracleJDK10.csh
    setenv J2SDKDIR=[copiedJdkPath]
    setenv J2REDIR=$J2SDKDIR/jre
    setenv JAVA_HOME=$J2SDKDIR/
    
  7. Finally Test Oracle JDK 10 Java Installation

    java -version

    On the Output simply must Not be present an Openjdk to Certify it…

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

    Getting-Started Quickly with JDK 10

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