problem on j2mewtk1.0.1 ktoolbar

Hi all,

my computer with win2k OS, installed jdk1.3, and j2mewtk1.0.1. I use ktoolbar to create a new project and then put a simple hello world level .java file to the src folder of that project and then compile and run the project with ktoolbar. Ktoolbar can compile and build the project and then it start the emulation, but the emulation just display for a second and close. Ktoolbar report a exception error:

Exception: java/lang/ClassNotFoundException

java.lang.ClassNotFoundException: newtest

at com.sun.midp.midletsuite.MIDletSuiteImpl.loadInitialMIDlet(+49)

at com.sun.midp.dev.DevMIDletSuiteImpl.loadInitialMIDlet(+9)

at com.sun.midp.midlet.Scheduler.schedule(+31)

at com.sun.midp.dev.DevMIDletSuiteImpl.schedule(+7)

at com.sun.midp.Main.runLocalDescriptor(+20)

at com.sun.midp.Main.main(+44)

Do i need to set any path or classpath to make the ktoolbar work ? (but I have already tried to set path and classpath but the exception still occured)

Pls help

[1048 byte] By [ovlok] at [2007-9-26 3:32:31]
# 1
hi,it looks to me that you might have a problem with the 'package'.Check 'newtest' to see if it is specified to be in a package and then check if it is in the adequate directory structure.Pato
fono at 2007-6-29 12:00:13 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
But i just create a project "newtest" by the ktoolbar "New Project" and then i write a simple .java file (newtest.java) and put it into the src folder of the project. When i run the project, exception occured. Do i miss some steps during creating the project ?
ovlok at 2007-6-29 12:00:13 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

[ovlok],

After you open the project in the kToolbar IDE, click on the 'Settings' button and check the 'MIDLet' menu tab and check to see if the 'Class' entry is the same as the class filename in your MIDlet .jar file.

Otherwise, please post your MIDlet source code for us to inspect and determine if you have a code problem (which I doubt but would want to verify my suspicions)

Allen Lai

Developer Technical Support

SUN Microsystems

http://www.sun.com/developers/support/

allenlai at 2007-6-29 12:00:13 > top of Java-index,Java Mobility Forums,Java ME Technologies...