Is the source and target level set to Java 1.6? I think there's some way to set this in Ant.