How to Install Oracle JDK 8 Ubuntu 18.10 Cosmic

October 16, 2018 | By the+gnu+linux+evangelist.

Ubuntu Cosmic Oracle JDK 8 - Set Path

  1. Setting JAVA_HOME User Environment Variable (Optional).

    su [myUserName]

    Or simply:

    exit

    And 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 :)
    Load New Bash Config:

    bash

QuickChic Theme • Powered by WordPress