myeclipse不支持泛型都解决办法
来源:互联网 发布:ed2k网络连接不上 编辑:程序博客网 时间:2024/05/18 00:50
在myeclipse里写泛型的时候可能会报如下错误:
- Syntax error, parameterized types are only available if source level
is 5.0(1.5)
- The type List is not generic; it cannot be parameterized with
arguments <Application>
1)一种是Eclipse对所有项目默认的设置是5.0以下,项目继承了默认设置(在Preferences/Java/Compiler里改为5.0或高于5.0)
另一种是项目里设置了source level 5.0以下(在 项目属性/Java Compiler 里改为5.0或高于5.0)
2)你的JDK 版本比较旧,或者你装了比较新的版本,但是你在Eclipse中的设置有问题,编译级别设置的不是比较新的版本的编译器。
解决办法:
在Eclipse中,菜单条 ---"Windows" ----"preferneces" 在弹出对话框中 ,在左侧列表框中 选择 "JAVA" ---子菜单中 "compiler" ... 然后在右侧把 "Compiler compliance level" 设置成(1.5)5.0以上即可。
- myeclipse不支持泛型都解决办法
- threadprivate 不支持的解决办法
- IE7不支持json 解决办法
- IE10 不支持selectNodes() 解决办法
- IE不支持getElementsByClassName解决办法
- myeclipse中不支持泛型
- IIS不支持ASP的解决办法
- IIS不支持ASP的解决办法
- 服务器不支持FLV的解决办法
- 浏览器不支持java的解决办法
- jsp 不支持EL表达式,解决办法
- ie不支持getelementbyname方法解决办法
- 服务不支持 chkconfig 的解决办法
- 浏览器不支持getElementsByClassName的解决办法
- SASS 不支持中文的解决办法
- Hive 不支持 intersect 的解决办法
- IDEA不支持jsx语法解决办法
- pycharm不支持中文注释解决办法
- COM 技术简介
- 第二阶段:boorloader的移植
- 第二阶段:boorloader的移植
- 什么是COM组件
- 关于 OLE DB 和 .NET
- myeclipse不支持泛型都解决办法
- 自我管理(6.27)
- 善待自己(6.28)
- 激情创造奇迹(6.29)
- 必须超越(6.30)
- 差异的思维,同样很重要
- 网关(gateway)与路由器(router)的区别与联系
- 奋斗
- 深入探索Java工作原理:JVM内存回收及其他