Skip to content

Instantly share code, notes, and snippets.

@naxmefy
Last active July 22, 2020 01:04
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naxmefy/c9b49d10de6827a336f81e6cbcccabe3 to your computer and use it in GitHub Desktop.
Save naxmefy/c9b49d10de6827a336f81e6cbcccabe3 to your computer and use it in GitHub Desktop.
setup java8 on cloud9
# Install Java.
sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update -y
sudo apt-get install -y oracle-java8-installer
sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /var/cache/oracle-jdk8-installer
# Define commonly used JAVA_HOME variable and update PATH
echo 'export JAVA_HOME=/usr/lib/jvm/java-8-oracle' >> ~/.bashrc
echo 'export PATH=$JAVA_HOME/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
@naxmefy
Copy link
Author

naxmefy commented Jun 10, 2017

Usage in Cloud9 Terminal

on a fresh cloud9 workspace - exute the following:

$ curl -sL https://gist.githubusercontent.com/naxmefy/c9b49d10de6827a336f81e6cbcccabe3/raw/16b84294f32c151c3f4951602b736898f036af7f/c9-java8.sh | sudo bash -

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