Add execute permissions to the scripts.
Use Java 1.7.