Diamond operator(<>) not working in java 1.7

前端 未结 3 1599
感动是毒
感动是毒 2020-12-21 15:39

I have the following error for compiling a jsp file:

\'<>\' operator is not allowed for source level below 1.7

I\'m using

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 16:22

    Check the following areas within Eclipse:

    1. Right Click Project > Properties > Project Facets > Java > Version 1.7

    2. Right Click Project > Properties > Java Build Path > Libraries > JRE Library should be 1.7

    3. Right Click Project > Properties > Java Compiler > Compiler compliance level

    4. Window > Preferences > Server > Runtime Environment > Select the Server > Edit > Ensure JRE is set to 1.7

提交回复
热议问题