Changed java config to use version 7