mardi 12 août 2014

Eclipse - Diamond operator(<>) ne fonctionne ne pas en java 1.7 - Stack Overflow


I have the following error for compiling a jsp file,



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



I'm using jdk 1.7.x and eclipse Kepler Also I have set 1.7 as compliance level in project preferences in Eclipse, still the code is not working


should i add any other config . please suggest me




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




I have the following error for compiling a jsp file,



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



I'm using jdk 1.7.x and eclipse Kepler Also I have set 1.7 as compliance level in project preferences in Eclipse, still the code is not working


should i add any other config . please suggest me



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



0 commentaires:

Enregistrer un commentaire