Centos

yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel # Install java