added java-1.7.0-openjdk-devel and avoided bad chmod command