in build.xml change src and target version to at least 1.6 to fix this.
in build.xml change src and target version to at least 1.6 to fix this.