corrected the java version to 1.7

changed java package and JAVA_HOME to 1.7