Skip to content

Instantly share code, notes, and snippets.

@espozbob
Last active October 31, 2018 14:14
Show Gist options
  • Save espozbob/b8c3e0459628c15b75eaa44551a3c7ff to your computer and use it in GitHub Desktop.
Save espozbob/b8c3e0459628c15b75eaa44551a3c7ff to your computer and use it in GitHub Desktop.
Installing java8 on c9.io
$ sudo vim /etc/apt/sources.list

Add the following lines of code to the file:

deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

$ sudo add-apt-repository ppa:webupd8team/java

$ sudo apt-get update

$ sudo apt-get install oracle-java8-installer

$ java -version

java version "1.8.0_101"

$ sudo vi /etc/environment

$ source /etc/environment

$ echo $JAVA_HOME

/usr/lib/jvm/java-8-oracle

@estafaa
Copy link

estafaa commented Oct 31, 2018

Thank you very much!!! Additionally here I used commands for Vim editor
https://www.cyberciti.biz/faq/linux-unix-vim-save-and-quit-command/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment