Search code examples
eclipsejakarta-ee

Dynamic Web Module 3.0 requires Java 1.6 or newer ECLIPSE JEE - Dynamic web project


I downloaded Eclipse. When I tried to create a new Dynamic web project I got this error:

enter image description here

This answer is different from this.

I installed Eclipse JEE, and I am trying to create a Dynamic Web Project.


Solution

  • It's probably because you are not specifying any Target Runtime and the default configuration probably is on an older version.

    You can try to configure a new Runtime Environment like below and select it to create your project after with it.

    Add a new runtime

    Then you select your server (the example is done with Tomcat but other servers should be similar):

    select server

    Then select the JRE associated to your runtime:

    select jre

    And finish by creating your Target runtime and use it, it should solve the problem:

    done

    Hope it helped!

    PS:

    You can also configure your Target runtime in Windows->Preferencces->Server->Runtime Environments