• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

ClassNotFoundException ...?????

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
i have just started running a sample
HelloWorld program in J2ME. Iam using
J2ME wireless Toolkit.
i put source file in src directory and
compile it using toolkit option "build"
its compiled well, but when i run the application
its showing emulator , and when clicked ,
its throwing the following exception.
Unable to create MIDlet HelloWorld.class
java.lang.ClassNotFoundException: HelloWorld.class
at com.sun.midp.midlet.Selector.commandAction(+47)
at javax.microedition.lcdui.List.keyPressed(+71)
at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+147)
at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+295)
also somebody said to see the source file name
should be same as the class file name in the
settings tab of the toolkit under Midlets tab.
Yes, they r same but still iam getting
above said exception .
please help me...
venu.
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you set the path properly? If you work in win2k os env't, you need to set it under environment variable. e.g. c:\j2mewtk\bin;
Also, if you are running the midlet under j2mewtk, you need to put the midlet dir under apps. But, you should do it. Otherwise, you cannot load and compile it.
Andrew
 
manju latha
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes sir,
i put midlet dir under apps and it is compiling too, but its still throwing ClassNotFoundException
when i click run on wirelessToolKit.
ofcourse i set path just now on ur saying.
iam using windows2000 do i need to restart the
system..?because after setting the path
when i run the application its still giving Exception..?
what could be the reason..???
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic