摘要: 提示错误如下:Syntax error, parameterized types are only available if source level在myeclipse里引入新项目的时候会报如下错误:在使用泛型的地方提示:Multiple markers at this line - Syntax error, parameterized types are only available if source level is 5.0 - The type List is not generic; it cannot be parameterized with arguments <Ap 阅读全文
posted @ 2012-05-02 21:27 德赛克巴莱 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 引言: eclipse新导入的项目经常可以看到“XX cannot be resolved to a type”的报错信息。本文将做以简单总结。 正文: (1)jdk不匹配(或不存在) 项目指定的jdk为“jdk1.6.0_18”,而当前eclipse使用的是“jdk1.6.0_22”。需要在BuildPath | Libraries,中做简单调整。 (2)jar包缺失或冲突 当找不到“XX”所在的jar包时,会报这个错。解决只需要找到(ctrl+点击,可能能看到jar包名称)对应jar包导入项目即可。 另外,出现相同的XX时也会报此错。可能需要调包、解包、选删。 (3)ecli... 阅读全文
posted @ 2012-05-02 20:58 德赛克巴莱 阅读(299) 评论(0) 推荐(0) 编辑