This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

[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.
 
You have to be odd to be #1 - Seuss. An odd little ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!