add support of java 1.7