updated instructions to install jdk1.7

for apt-get and yum corrected the java install commands to install jdk1.7