This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes nullpointer exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "nullpointer exception" Watch "nullpointer exception" New topic
Author

nullpointer exception

adroit dhanwada
Greenhorn

Joined: Apr 18, 2007
Posts: 16
Hi
Iam new to j2me. iwrote simple MIDlet.executed in WTK 2.2.build is successful. but Run is giving me nullpointer exception.
The sample program "HelloWorld" (copied & pasted) is working fine.but my MIDlet similar to HelloWorld is not.
myMIDlet is in folder C:\WTK2.2\apps\Hello1\myMIDlet.java
please someone help me how to work with this problem.
do i have to have a package in my program?
i tried this on command prompt also. there it is simply displaying emulator without any output that i gave. No error msg also.
please please somebody help ASAP
Thanks
Arnb Sen
Ranch Hand

Joined: Feb 23, 2004
Posts: 145
Hi Adroit,

Did you manage to solve the problem ? You might want to post the code, packaging etc... for solution.

Arnab
adroit dhanwada
Greenhorn

Joined: Apr 18, 2007
Posts: 16
Hi
Thankyou for the reply.i got the solution.it is classpath problem. i am executing all midlets in command prompt. iam not using WTK tool.
Thanks again
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: nullpointer exception
 
It's not a secret anymore!