use java7 to overcome strange oom issue