• Post Reply Bookmark Topic Watch Topic
  • New Topic

nullpointer exception  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adroit,

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

Arnab
 
adroit dhanwada
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!