Created
February 12, 2013 16:15
-
-
Save rvenugopal/4771004 to your computer and use it in GitHub Desktop.
Procedure for upgrading Java on Default Amazon Linux AMI (2012.09)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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