How to Install Oracle JDK 10 on MX Linux Easy Guide

September 7, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Oracle JDK 10 Install MX Linux

Hello MX Linux User! The Tutorial Shows You Step-by-Step How-to Install Oracle JDK 10 on MX GNU/Linux Desktop.

And to SetUp Oracle JDK for MX Linux you will need to Use the update-alternatives Tool to Update your System Java to 1.10 JDK 10.

The JDK 10 New Features:

  • A local-variable type inference
  • A clean garbage collector interface
  • Parallel full garbage collection
  • Enabling HotSpot to allocate the object heap on an alternative memory device
  • Enabling the Grall Java-based just-in-time compiler experimental in Linux/x64
  • Consolidation of the repositories of the JDK forest into a single one
  • Application class-data sharing, for executing a callback on threads without performing a global VM safepoint
  • Thread-local handshakes
  • Provision of a default set of root certificate authority certificates in the JDK

Finally, the Contents and Details of Oracle JDK 10 on MX Linux Install are Expressly Minimal to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;)

How to Install Oracle JDK 10 on MX Linux Easy Guide - Featured
  1. Open Terminal Window
    Right-Click on Desktop & Select Open Terminal Here
    (Press “Enter” to Execute Commands)

    How to Install Oracle JDK 10 on MX Linux Easy Guide - Open Terminal

  2. Download Oracle Java SE JDK 10 for Linux:

    Oracle JDK 10 Linux tar.gz
  3. Double-Click on the tar.gz Archive and Extract into /tmp
    Or from Shell:

    tar xvzf ~/Downloads/jdk-10*.tar.gz -C /tmp/

    How to Install Oracle JDK 10 on MX Linux Easy Guide - Java JDK 10 tar.gz Extraction Path

  4. Relocate Java JDK 10

    su -

    If Got “User is Not in Sudoers file” then Look: Solution
    Make a jvm Directory if Not already there with

    if [ ! -d "/usr/lib/jvm" ]; then mkdir /usr/lib/jvm; fi

    Set the root 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. Installing Oracle Java JDK 10
    You can directly Copy & Paste the Commands into Terminal…

    update-alternatives --install \
    /usr/bin/java java /usr/lib/jvm/jdk-10*/bin/java 1065
    update-alternatives --install \
    /usr/bin/javac javac /usr/lib/jvm/jdk-10*/bin/javac 1065
    update-alternatives --install \
    /usr/bin/jar jar /usr/lib/jvm/jdk-10*/bin/jar 1065
    update-alternatives --install \
    /usr/bin/javaws javaws /usr/lib/jvm/jdk-10*/bin/javaws 1065

    Checking or Setting the System Java Version in Use with

    update-alternatives --config java

    And for the Java Compiler instead:

    sudo update-alternatives --config javac

    To Switch of Java Version Just Enter the Selection Number on First Column. :)

    How to Install Oracle JDK 10 on MX Linux Easy Guide - JDK Configuration

  6. (Optional) Setting JAVA_HOME User Environment Variable

    su [myUserName]

    Edit the Bash environment Configuration file

    nano $HOME/.bashrc

    Append:

    export JAVA_HOME=/usr/lib/jvm/jdk-10*

    Eventually to Check the JDK 10 exact PATH use in another window:

    ls /usr/lib/jvm/

    Ctr+x to Save & Exit from nano Editor :)
    Load New Bash Config:

    bash
  7. Finally Test New Java JDK 10 Installation

    java -version
  8. Java IDEs Installation on MX Linux

    Eclipse IDE for Java Development Install on MX Linux: Installing Eclipse IDE for Java Dev on MX Linux.

    Netbeans IDE for Java Development Install on MX Linux: Installing NetBeans IDE for Java Dev on MX Linux.

    IntelliJ IDEA 2018 for Java Development Install on MX Linux: Installing IntelliJ IDEA for Java Dev on MX Linux.

    Now Thanks to Oracle-Sun Corporation You are Able to Successfully Start Up with Java 10 Development.

    Welcome to Java 10 New Dev Env! ;)


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