change to jre 7 and correcting imports