Skip to content

Instantly share code, notes, and snippets.

@rvenugopal
Created February 12, 2013 16:15
Show Gist options
  • Select an option

  • Save rvenugopal/4771004 to your computer and use it in GitHub Desktop.

Select an option

Save rvenugopal/4771004 to your computer and use it in GitHub Desktop.

Revisions

  1. rvenugopal created this gist Feb 12, 2013.
    14 changes: 14 additions & 0 deletions javaUpgradeProcedure
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # 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