- Syntax error, parameterized types are only available if source level is 1.5 or greater

Multiple markers at this line     - Syntax error, parameterized types are only available if source level is 1.5 or greater     - The class file Reducer<KEYIN,VALUEIN,KEYOUT,VALUEOUT> contains a signature '(Lorg/apache/hadoop/      mapreduce/Reducer<TKEYIN;TVALUEIN

在eclipse中菜单Window----preferences----java-----compiler把右边中的Compiler
compliance level改为1.6
右击项目,修改properties,找到java
compiler修改compiler compliance level为1.6 or greater

猜你喜欢

转载自blog.csdn.net/helloworld0906/article/details/89977192