您的位置:首页 > 大数据 > 人工智能

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

2015-10-16 00:09 495 查看
出处:
Syntax error, type parameters are only available if source level is 1.5
当我的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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: