• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A package related Issue with J2ME project

 
Ronish Cheenath Raphael
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am just a bigner in J2ME ...

I use suns wirless tool kit 2.2.

In that i started a project as HelloSuite and wrote a midlet as

HelloMIDlet diretcly under src directory. There was no any package

declaration. And it worked fine.


But when next time I started a project with this and created one sub-folder "hellow" under src and written the same code with a pakcage declartion as "package hellow;"

After that i build the project then i got my oout put class files under folder classes/hello/HelloMIDlet.class

But when I tried to run this in mobile phone simulator it showing a class not found error as follows

Running with storage root DefaultColorPhone
Unable to create MIDlet HelloMIDlet
at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
at com.sun.midp.midlet.Selector.run(+22)
 
Ronish Cheenath Raphael
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried thia just similar to the exambple projects given with toolkit...but mine is not working properly.

So I wlecome ur rplys ....

Thanks in Advance
- Ronish Cheenath Raphael
 
Ronish Cheenath Raphael
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am very sorry for a foolish posting .....!
Now it working fine ....
The problem got solved when i changed the required class in
project setting as "package_name.class_name"

Thanks for showing a high peice of tolerence against me,
Ronish Cheenath Raphael
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic