Upgrade to Java 7 and make it easier to configure.