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

April 21, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Install Oracle JDK 10 on Antergos 64-bit Linux





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

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

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

The Content give Focus Only to the Essentials Instructions and Commands to make it Easier to Follow.

Install Oracle JDK 10 on Antergos 64-bit Linux - Featured
  1. Open a Command Line Terminal window
    (Press “Enter” to Execute Commands)

    Install Oracle JDK 10 on Antergos 64-bit Linux - Gnome Launch Terminal
  2. Download Oracle Java SE JDK 10 Linux Release:

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

    tar xvzf ~/Downloads/jdk-9*.tar.gz -C /tmp/
  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 howner:

    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 contents 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: , , , , , , , , , , , , , , , , , , , , , , , , , , ,