The method xxx of type xxx must override a superclass method

来源:互联网 发布:mac怎么卸载第三方软件 编辑:程序博客网 时间:2024/05/20 23:36

将工程由myeclipse7导入到myeclipse10中,一直报一个错误,导致项目无法运行,根本原因是编译器版本问题,改正版本即可,方法如下:


The method xxx of type xxx  must override a superclass method

解决方法:

一、                                                                     

因为你的Compiler 是jdk1.5,只要把它改为 1.6

方法: 

1. window ->preferences... -> java -> Compiler

2. Compiler compliance level : 1.6

二、 把项目的JRE变成6.0的

项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为1.6      

0 0
原创粉丝点击