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.
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
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..???
manju
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.