Skip to content

Instantly share code, notes, and snippets.

@schmmd
Created November 14, 2013 18:56
Show Gist options
  • Save schmmd/7472349 to your computer and use it in GitHub Desktop.
Save schmmd/7472349 to your computer and use it in GitHub Desktop.
Upgrade OpenJDK to 1.7.0 on EC2
sudo yum install jre-1.7.0-openjdk
# I don't know what 20000 is for
sudo alternatives --install /usr/bin/java java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java 20000
# elect 1.7.0
update-alternatives --config java
# test it out
java -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment