This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

[j2me] A big problem with midlet execution  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I encounter a problem when I try to launch my midlet on an emulator (palm, phone).
(with Forte For Java or KtoolBar).
It's my error :
Unable to create MIDlet HelloMidlet
java.lang.ClassNotFoundException: HelloMidlet
at com.sun.midp.midlet.Selector.commandAction(+47)
at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+152)
at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+427)
I have generated all my files:
- HelloMidlet.class after compiling
- HelloMidlet.jar after preverifying my HelloMidlet.class
- HelloMidlet.jad the file I execute
thank you
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that your Midlet is in the .jar and the value of Midlet-Name in .jad is the same name of your Midlet (including packages). Try to copy your .jad here so we can help you better.
Hope it helps,
Horaci Macias
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I know that when I used to make my jad files manually.. it was really tough. I think if you want to do this for real, download the WTK (WirelessToolKit) from Sun. It's free and does all that stuff for you.. and make sure things are all good.
hope that helps.
w.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!