Skip to content

Instantly share code, notes, and snippets.

@tobegit3hub
Last active September 14, 2015 01:31
Show Gist options
  • Save tobegit3hub/22d8d579f184db09802b to your computer and use it in GitHub Desktop.
Save tobegit3hub/22d8d579f184db09802b to your computer and use it in GitHub Desktop.
apt-get purge -y openjdk*
add-apt-repository -y ppa:webupd8team/java
apt-get update -y
apt-get install -y oracle-java7-installer
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment