Skip to content

Instantly share code, notes, and snippets.

@weizhou2273
Created August 6, 2017 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weizhou2273/f89c71f24f1474ec0e546a5b34a72597 to your computer and use it in GitHub Desktop.
Save weizhou2273/f89c71f24f1474ec0e546a5b34a72597 to your computer and use it in GitHub Desktop.
# install java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo update-alternatives --config java
readlink -f $(which java)
# /usr/lib/jvm/java-8-oracle
sudo vi /etc/profile
# {vi environment}
source JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment