change java 7 to java 6