MyException - 我的异常网
当前位置:我的异常网» J2ME » java.lang.Error:   Unresolved   compil

java.lang.Error:   Unresolved   compilation  

www.MyException.Cn  网友分享于:2013-11-26  浏览:2100次
exlist.setCommandListener(this); 报错 (请高手指教)
java.lang.Error:   Unresolved   compilation   problem:  
The   method   setCommandListener(CommandListener)   in   the   type   Displayable   is   not   applicable   for   the   arguments   (heloow)

at   heloow. <init> (+9)
at   java.lang.Class.runCustomCode(+0)
at   com.sun.midp.midlet.MIDletState.createMIDlet(+19)
at   com.sun.midp.midlet.Scheduler.schedule(+52)
at   com.sun.midp.main.Main.runLocalClass(+28)
at   com.sun.midp.main.Main.main(+116)
Execution   completed.
700767   bytecodes   executed
6   thread   switches
740   classes   in   the   system   (including   system   classes)
3630   dynamic   objects   allocated   (99144   bytes)
2   garbage   collections   (85424   bytes   collected)

------解决方案--------------------
Command 没有setCommandListener()的方法,只有Displayable的子类才有setCommandListener()方法.

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有