run with java 7 or 8