Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 632
pappu_kutty Avatar asked Sep 06 '25 11:09

pappu_kutty


2 Answers

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.

like image 127
Yubaraj Avatar answered Sep 09 '25 23:09

Yubaraj


Just Change "the dynamic web module version" to 2.5 and than change it back to 3.0 and the error disappears. It worked fine for me.

like image 27
Enrus Avatar answered Sep 09 '25 23:09

Enrus