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

How to Install Oracle JDK 6 on Ubuntu 18.04 Bionic

February 22, 2018 | By the+gnu+linux+evangelist.

Installing

  1. Download Oracle Java SE JDK 6 for Linux

    Oracle JDK6 x86/x8664 .bin
  2. Unpack the jdk6.bin Archive

    sudo su

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo

    cd && cd Downloads
    ./jdk1.6*.bin
  3. Relocate JDK 6

    mv ./jdk1.6.* /usr/lib/jvm/jdk1.6

    And if Not jvm Dir then first do:

    mkdir /usr/lib/jvm
  4. Installing Oracle Java JDK6.

    update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.*/bin/java 1065
    update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.*/bin/javac 1065
    update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.*/bin/jar 1065
    update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.*/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 Reference Number on First, Column. :)

Contents