`
aindf0128
  • 浏览: 44187 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

【转】Syntax error, parameterized types are only available if source level is 5.0

阅读更多

用eclpise(或者myeclipse)时候,如果出现以下错误:

Syntax error, parameterized types are only available if source level is 5.0

 

解决方法是:

  1. Eclipse对所有项目默认的设置是5.0以下,项目继承了默认设置(在Preferences/Java/Compiler里将JDK Compliance改为5.0或高于5.0);
  2. 项目里设置了source level 5.0以下(在 项目属性/Java Compiler里将JDK Compliance改为5.0或高于5.0)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics