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

How to Install JDK 8 CentOS 6 Gnu/Linux

September 28, 2018 | By the+gnu+linux+evangelist.

Oracle JDK 8 CentOS 6 - Installation

  1. So to Install Oracle Java JDK 8 Package
    Access the target directory:

    cd $HOME/Downloads
    

    Login as SuperUser (This to make shorter the following commands):

    sudo su
    

    Then to Install Oracle JDK 8 for CentOS 6:

    sudo dnf install ./jdk-8-linux*.rpm
    
  2. Then Setup Oracle Java JDK 8
    (Simply copy & paste these commands)

    update-alternatives --install /usr/bin/java java /usr/java/jdk1.8*/bin/java 1065
    
    update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.8*/bin/javac 1065
    
    update-alternatives --install /usr/bin/jar jar /usr/java/jdk1.8*/bin/jar 1065
    
    update-alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.8*/bin/javaws 1065
    

    And Check/Set the System Java Version in Use with:

    update-alternatives --config java
    

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

  3. Setting JAVA_HOME User Environment Variable (Optional)
    Achieve the SuperUser session:

    exit

    Edit the Bash environment Configuration file:

    nano $HOME/.bashrc

    Append:

    export JAVA_HOME=/usr/lib/jvm/jdk1.8[uX]

    Replace the [uX] Looking for the Installed Java 8 Version with:

    ls /usr/lib/jvm/

    Ctr+x to Save & Exit from nano Editor :)
    And Load New Bash Configutation simply with:

    bash
  4. Finally, Test New Java JDK 8 Installation.

    java -version
  5. How to Install Eclipse for Java 8 on CentOS

    Eclipse with JDK8 Installation

    Now Thanks to Oracle-Sun Corporation you are able to Successfully Start Up with Java 8 Development.

    Welcome to Java 8 Challenge! ;)

    Installing Latest IntelliJ IDEA for Java Scala & Android on CentOS

    Install the Latest IntelliJ for CentOS

Contents