Java – Eclipse- Dynamic Web Module 3.0 requires Java 1.6 or newer error while creating new project

eclipseeclipse-pluginjava

I am not able to create a new Dynamic Web Project in eclipse indigo. I am getting the following error while creating new one.

Dynamic Web Module 3.0 requires Java 1.6 or newer

I have java compiler version as 1.7 and SDK version 1.7.

enter image description here

Best Answer

This is late answer. But may help to other. If you are using Maven based project. You just include following code in pom.xml file. It can be resolved.

<build>
    <plugins>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>
        </plugin>
    </plugins>
</build>

Update: Similarly if you are using jdk version 1.8 just include it in your <source> and <target> tags.