Use JDK 6 in IDE to rule out incompatibilities with Java 6.