首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

java异常:the hierarchy of type "类名" is inconsistent

2011-11-18 
java错误:the hierarchy of type 类名 is inconsistent我写了个类public class J_ActionListener implem

java错误:the hierarchy of type "类名" is inconsistent
我写了个类

public class J_ActionListener implements ActionListener{
public void actionPerformed(ActionEvent e){
......
}

}


该引入的包都引入了,eclipse提示我错误:the hierarchy of type J_ActionListener is inconsistent
这是哪儿的问题呢?

jdk6.0

[解决办法]
等级类型J_ActionListener不一致
[解决办法]
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Aa implements ActionListener{
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
}
我测试了.没有你说的那个错误
楼主看看.是不是哪里不对!
[解决办法]
等级类型不一致 
你实现的接口的时候 用工具自动实现 也许是你自己写错了什么
[解决办法]
肯定是缺包,或者环境有问题。。。

热点排行
Bad Request.