Skip to content

Instantly share code, notes, and snippets.

@garystafford
Created December 19, 2013 03:44
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 garystafford/8034110 to your computer and use it in GitHub Desktop.
Save garystafford/8034110 to your computer and use it in GitHub Desktop.
Code for blog post, 'Updating Ubuntu with the Latest Java JDK': http://wp.me/p1RD28-Wq
# open bashrc
sudo nano ~/.bashrc
#add these lines to bashrc file
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_45
export PATH=$PATH:$JAVA_HOME/bin
# for the changes to be visible in the current session
bash --login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment