Last active
July 22, 2020 01:04
-
-
Save naxmefy/c9b49d10de6827a336f81e6cbcccabe3 to your computer and use it in GitHub Desktop.
setup java8 on cloud9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 -