- Go to project
Build Path
and change the Java Library version to1.7
- Go to Eclipse Preferences -> Java -> Compilre -> Change compliance level to
1.7
- Right click on project -> Properties -> Project Facets
- Uncheck
Dynamic Web Module
and click Apply (also uncheckJavaServer Faces
if you had that) - Change the
Java
facet version to1.7
and click Apply - Add the
Dyanmic Web Module v3.0
, apply.
Eclipse's facets configuration is buggy. Make sure you keep hitting Apply
between checking and unchecking of facets.
Links: