Added java 7 check