Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install JRE 7 update 7 in amazon linux ami
# Get the latest Sun Java JRE RPM from Oracle
# Install Java
sudo rpm -i jre-7u7-linux-x64.rpm
# Check if the default java version is set to Oracle JRE
java -version
# If not then lets create one more alternative for Java for Oracle JRE
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.7.0_07/bin/java 20000
# Set the Oracle JRE as the default java
sudo /usr/sbin/alternatives --config java
# Verify if change in JRE was done.
java -version

This comment has been minimized.

Copy link

Cacodaimon commented Nov 26, 2013

Works perfectly, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.