Skip to content

Instantly share code, notes, and snippets.

@sthorne
Created February 24, 2015 19:45
Show Gist options
  • Save sthorne/7de70dc5cd871ce2f48f to your computer and use it in GitHub Desktop.
Save sthorne/7de70dc5cd871ce2f48f to your computer and use it in GitHub Desktop.
Install Java on CentOS 6
mkdir /usr/java
cp jre-7u51-linux-x64.rpm /usr/java/jre-7u51-linux-x64.rpm
cd /usr/java
rpm -ivh jre-7u51-linux-x64.rpm
alternatives --config java
java -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment