Updated server and agent scripts to use Java 7.