Added code to allow passing in 1.6 or 1.7 for java version on Redhat os Family.