1
votes

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.

1
Open Window->Preferences->Java->Installed JREs. You should have a JRE definition checked. What is in the 'Name' column for the entry that is checked? Also, open Window->Preferences->Java->Compiler. What is the value shown for 'Compiler compliance level'?skomisa
the value shown by Compiler compliance level is 1.8jjoselon
Your problem may be a duplicate of stackoverflow.com/questions/25909611/… so try the suggestions there, and advise whether any of them worked for you.skomisa

1 Answers

2
votes

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