随笔-10  评论-23  文章-32  trackbacks-0

当我的eclipse使用jdk1.6的时候,创建泛型类,系统会提示错误:

“Set project compiler compliance settings to '1.5'”

“Syntax error, type parameters are only available if source level is 1.5”

这时候需要改动两个地方:

1.右击项目-->properties-->java compiler -->选择enabel project specific setting -->Compiler compliance level :选择1.5版本,其他默认

2.右击项目-->properties -->project facets-->将java后的下拉框选择为5.0

posted on 2009-08-04 14:34 liuyimx 阅读(4426) 评论(0)  编辑  收藏 所属分类: eclipsemyeclise

只有注册用户登录后才能发表评论。


网站导航: