正在通过存储根 DefaultGrayPhone 来运行
java.lang.NullPointerException
at com.sun.java.uiDemo.formWel. <init> (+19)
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.
704057 bytecodes executed
2 thread switches
740 classes in the system (including system classes)
3675 dynamic objects allocated (100720 bytes)
2 garbage collections (86304 bytes collected)
然后模拟器就退出!!!!
------解决方案--------------------------------------------------------
空指针错误
变量没有初始化就引用了吧
------解决方案--------------------------------------------------------
空指针错误 对象为null MIDlet产生时就报错`` 是不是窗体没new 就引用了啊`
------解决方案--------------------------------------------------------
NullPointerException
仔细检查下你的使用的变量
有没有没初始化的