在运行J2ME程序的时候,eclipse不报错,但是程序不能运行,会出现模拟器一闪就关闭,其他的程序可以运行。
java.io.IOExceptionatjavax.microedition.lcdui.ImmutableImage.getImageFromStream(+15)a...
java.io.IOException
at javax.microedition.lcdui.ImmutableImage.getImageFromStream(+15)
at javax.microedition.lcdui.ImmutableImage.<init>(+20)
at javax.microedition.lcdui.Image.createImage(+8)
at src.GameImage.imglong(+25)
at src.GameMap.<init>(+4478)
at src.MyGameCanvas.<init>(+696)
at src.MIDlet.startApp(+12)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+116)
startApp threw an Exception
java.lang.NullPointerException
java.lang.NullPointerException
at javax.microedition.lcdui.game.TiledLayer.<init>(+68)
at src.GameMap.<init>(+4513)
at src.MyGameCanvas.<init>(+696)
at src.MIDlet.startApp(+12)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+116)
Execution completed.
3408262 bytecodes executed
22 thread switches
1653 classes in the system (including system classes)
18308 dynamic objects allocated (627724 bytes)
12 garbage collections (504120 bytes collected) 展开
at javax.microedition.lcdui.ImmutableImage.getImageFromStream(+15)
at javax.microedition.lcdui.ImmutableImage.<init>(+20)
at javax.microedition.lcdui.Image.createImage(+8)
at src.GameImage.imglong(+25)
at src.GameMap.<init>(+4478)
at src.MyGameCanvas.<init>(+696)
at src.MIDlet.startApp(+12)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+116)
startApp threw an Exception
java.lang.NullPointerException
java.lang.NullPointerException
at javax.microedition.lcdui.game.TiledLayer.<init>(+68)
at src.GameMap.<init>(+4513)
at src.MyGameCanvas.<init>(+696)
at src.MIDlet.startApp(+12)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+116)
Execution completed.
3408262 bytecodes executed
22 thread switches
1653 classes in the system (including system classes)
18308 dynamic objects allocated (627724 bytes)
12 garbage collections (504120 bytes collected) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询