Upgrades to Java 7, adds setting of default java version on postinst script, modifies source code to use Java 7 features