当前位置: 代码迷 >> J2ME >> java.lang.Error:   Unresolved   compilation  
  详细解决方案

java.lang.Error:   Unresolved   compilation  

热度:1900   发布时间:2013-02-25 21:35:30.0
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()方法.
  相关解决方案