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

后端 未结 15 1275
后悔当初
后悔当初 2020-12-29 04:51

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 r

相关标签:
15条回答
  • 2020-12-29 05:00

    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.

    0 讨论(0)
  • 2020-12-29 05:00

    I followed the steps in the link and it worked for me solving-dynamic-web-module-3.0 requires java 1.6 or newer in maven projects

    0 讨论(0)
  • 2020-12-29 05:10

    I don't know if this might work for you guys, but here is my case:

    1. My java version lists as java 1.8 with java -version but I got the same same error on eclipse.
    2. Later I changed the dynamic web module version to 2.5. the error notification disappeared.
    3. Then again I changed my dynamic web module version to 3.0 and the error did not show up; and I was able to create the project.

    I dont know the reason though.

    0 讨论(0)
  • 2020-12-29 05:11

    Answer was correct :), But slightly need a correction.

    --> Enable Java compiler to 1.7

    --> Facet check java (do not check Dynamic module)

    --> Last step check Dynamic module

    :)...

    after you enable java compiler to 1.7 then go to facet then first check java instead of Dynamic module. Then it will allow you to check the Dynamic module.

    0 讨论(0)
  • 2020-12-29 05:13

    Follow below steps and all errors will be gone -

    1- Right-click on your project folder 2- Click properties 3- Click Java Build Path 4- Click Libraries 5- Select JRE system library 6- Click the edit button on the right 7- Select alternate JRE 8- From the drop-down select the installed JRE and all errors will be gone

    0 讨论(0)
  • 2020-12-29 05:16

    Because Dynamic Web Module 3.0 requires Java 1.6 or newer. (Dynamic Web Module version 3.0 refer Serverlet 3.0)
    You should
    * Download and install newer JDK (JDK 1.8u20)
    * Download and install newer Eclipse: Eclipse IDE for Java EE Developers Luna (4.4) enter image description here

    Update:
    * Check JAVA_HOME Environment variable
    or
    * Edit eclipse.ini file (tutorial: http://wiki.eclipse.org/Eclipse.ini ) find section: -vm value

    0 讨论(0)
提交回复
热议问题