java 6 to 7