Created
November 14, 2013 18:56
-
-
Save schmmd/7472349 to your computer and use it in GitHub Desktop.
Upgrade OpenJDK to 1.7.0 on EC2
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
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