Skip to content

Instantly share code, notes, and snippets.

@andineck

andineck/java.sh

Created Nov 3, 2015
Embed
What would you like to do?
Java Ubuntu Version
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
# choose java version
sudo update-alternatives --config java
# set JAVA_HOME
sudo nano /etc/environment
> JAVA_HOME="/usr/lib/jvm/java-8-oracle"
source /etc/environment
echi $JAVA_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment