Make sure project compiles with JDK 1.7