Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URGENT: MIDlet Not Running, NullPointerException!!

 
Andrio Nickolson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I am using J2MEWDK from Sun and using default MIDP1.0 specification. I have build and executed most examples, and also designed the basic MIDP for displaying text on to it.
But right now when i designed a MIDlet that has a Main List Menu containing two Items that are also List Menu, lastly project builded, but giving exception while running!
-----------------------------------------------------------------------
Could not create icon Info:[ MyMIDlet, class = MyMIDlet, icon = MyMIDlet.pngUnable to create MIDlet MyMIDlet
java.lang.NullPointerException
at MyMIDlet.<init>(+287)
at com.sun.midp.midlet.Selector.commandAction(+42)
at javax.microedition.lcdui.List.keyPressed(+39)
at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+68)
at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+273)
-----------------------------------------------------------------------
There are only 183 lines in my MyMIDlet.java file!
Can any one help me why this NullPointerException raises when there is all right, and also what can go wrong in this case!!
Thanks in advance!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic