$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Step-by-step – Oracle JDK 16 Installation in Ubuntu 20.04

March 22, 2021 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading Oracle JDK 16

    Download Oracle JDK 16 GNU/Linux Package

    Here Oracle JDK 16 .deb 64-bit
    Link to Download Oracle JDK 16 for deb Based
  2. 3. Installing Oracle JDK 16

    Then to Setup Oracle JDK 16 on Ubuntu 20.04 Linux
    First, Access the Target, usually in the Downloads folder:
    (But if downloaded with Firefox it can be instead into /tmp/mozilla*)

    Copy
    cd && cd Downloads

    Now to Confirm the Package is there do:

    Copy
    ls . | grep jdk

    But if you are in Trouble to Find the Location on Terminal then See: How to Access Downloads Folder from Browser.

    Finally, to Install JDK 16 simply:

    Copy
    sudo dpkg -i jdk-16*.deb
  3. 4. Setting Up Java

    Next to Set Up Oracle Java JDK 16
    You can directly Copy & Paste the Commands into Terminal..

    Copy
    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-16*/bin/java 1165
    Copy
    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-16*/bin/javac 1165
    Copy
    sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-16*/bin/jar 1165
    Copy
    sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk-16*/bin/javaws 1165

    Checking or Setting the System Java Version in Use with

    Copy
    sudo update-alternatives --config java

    And for the Java Compiler instead:

    Copy
    sudo update-alternatives --config javac

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

    How to Download and Install Oracle JDK 16 on Ubuntu/Debian-based - JDK Configuration

  4. 5. Setting Up Env

    (Optional) Setting JAVA_HOME User Environment Variable
    And Edit the Bash environment Configuration file

    Copy
    nano $HOME/.bashrc

    Append:

    Copy
    export JAVA_HOME=/usr/lib/jvm/jdk-16[Release]

    Replace [Release] with the actual one on the above Command.
    Possibly to Check the JDK 16 exact PATH use in another window:

    Copy
    ls /usr/lib/jvm/

    Ctr+x to Save & Exit from nano Editor :)
    Next to Load the New Bash Environment:

    Copy
    bash
  5. Finally, Test New Java JDK 16 Installation

    Copy
    java -version

Contents