change java7 to java6