Skip to main content

a question about compiling j2me (sorry I don't know the best forum for this

1 reply [Last post]
Joined: 2004-11-10


Sorry that I don't know which forum is suitable for this type of question: does anyone know how to compile j2me correctly?

javac -bootclasspath C:\Java\sun_wtk2.1\lib\cldcapi11.jar;C:\Java\sun_wtk2.1\lib\midpapi20.jar

It is not always generating correct class file to run. On my old computer with 1.4 version, It works; After moving to a new computer, it does not work!

The error message says:
MIDlet initialization failed: java.lang.Error: inconsistent or missing stackmap at target

I compared two class files. The one that works contains a little more bytes. (The class file compiled on old machine can still run on the emulator on the new machine.) Does anyone know the possibly reason?

Thanks a lot for help,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-10-14