This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Iam new to j2me so recently i wrote a program on image in that i got a" null point exception" and image did not display. my img in the src folder is that correct? Please help me.
Project "img" loaded
Project settings saved
Running with storage root DefaultColorPhone
startApp threw an Exception
java.lang.NullPointerException java.lang.NullPointerException at javax.microedition.lcdui.Form.append(+11)
735550 bytecodes executed
27 thread switches
741 classes in the system (including system classes)
3893 dynamic objects allocated (111700 bytes)
2 garbage collections (93492 bytes collected)
Never do this. A catch block should not be empty. You should have at least a comment as to why you left it empty (there are occassionally good reasons for this). If you don't have a good reason, then you should at least print out the stack trace.
Joined: Oct 21, 2013
i wrote the code in catch block like "e.PrintTrace();" as you told before but, same exception error occured. so please help me