I created a web project in STS 2.9.2 using Spring 3.0.6 and Maven 3.0.3. I created several pages and code without errors. I upgraded Spring from version 3.0.6 to 3.1.2 in the pom.xml project, and now I get the following error message:
Dynamic Web Module 3.0 requires Java 1.6 or later.
The version of the dynamic web module and the version of the Java compiler on the project faces are set to 2.5 and 1.6, respectively. Also install the JRE system library for my project on 1.6.
I tried to remove the nature of Maven and then add it again, and the JRE system library is automatically installed on JSE 1.5 (but I do not have Java 1.5 installed). I manually change the JRE system library to 1.6 (to fix the STS complaint about the version of the JRE system library), but the error remains in the dynamic web module.
I searched for corrections but did not find anything.
How can I solve this error?
source share