Skip to content

Instantly share code, notes, and snippets.

@rvenugopal
Created February 12, 2013 16:15
Show Gist options
  • Save rvenugopal/4771004 to your computer and use it in GitHub Desktop.
Save rvenugopal/4771004 to your computer and use it in GitHub Desktop.
Procedure for upgrading Java on Default Amazon Linux AMI (2012.09)
# You can also follow the procedure at https://gist.github.com/tankchintan/1335220
# You can update to OpenJDK 1.7 with AMI 2012.09. See release notes http://aws.amazon.com/amazon-linux-ami/2012.09-release-notes/
#First install OpenJDK 1.7
sudo yum install java-1.7.0-openjdk
# Check that 1.7 is installed and choose it
>sudo /usr/sbin/alternatives --config java
#- Choose option for jre-1.7(For me it was option 2)
2
#Verify that current vesion is 1.7
java -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment