Error running application

When I try to run (it compiles fine) an application I'm porting, I get this error when I try to run it with KToolbar:

Initializing class: 'java/lang/System'

Initializing class: 'com/sun/cldc/i18n/Helper'

Initializing class: 'com/sun/midp/security/SecurityDomain'

Initializing class: 'com/sun/midp/dev/Manager'

Initializing class: 'com/sun/midp/lcdui/Resource'

Exception: java/lang/ClassNotFoundException

Exception: java/lang/ClassNotFoundException

Initializing class: 'javax/microedition/rms/RecordStoreFile'

Initializing class: 'com/sun/midp/io/j2me/storage/File'

Exception: java/io/EOFException

Initializing class: 'com/sun/kssl/SSLStreamConnection'

Initializing class: 'com/sun/midp/midletsuite/Properties'

Initializing class: 'java/lang/Integer'

ALERT: Bad method signature

I'm very new to this aspect of java programming, and am unfamiliar with what are probably some basic concepts, so any help will be greatly appreciated.

m

[1063 byte] By [wywiwyg] at [2007-9-26 3:53:13]
# 1

[wywiwyg],

I am assuming that you compiled the code without using the J2ME Wireless Toolkit but instead used the CLDC/MIDP 1.0 packages.

So my question is whether you preverified the .class before you jar the class file in a MIDlet application suite.

A sample preverify command on a compiled HelloMIDlet.class file looks like this:

C:\<MIDP install dir>\bin\preverify.exe -classpath .;%MIDP_CP% HelloMIDlet

, where %MIDP_CP% is the path of the MIDP classes.

HTH.

Allen Lai

Developer Technical Support

SUN Microsystems

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

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