Inconsistent or missing stackmap at target

Hello,

I have problem after problem with Forte 4 ME (sun recently removed all links to Studio One 4 ME and as far as i can tell 5 doesnt even have ME support, and even if it did, it’s not free…and i’m a hobby developer). Anyway…everytime i compile my MIDlet i get errors like these :

Error verifying method com/osiris/core/RGameEngine addRenderer(Lcom/osiris/core/RGameRenderer;)I
Approximate bytecode offset 9: Inconsistent or missing stackmap at target
ALERT: Error verifying class com/osiris/core/RGameEngine

What am i doing wrong?

Using WTK 1.04, Sun Forte ME 4.0, no updates installed because the update center server is down as well…yay

and yes, i am getting slightly pissed off here at Sun’s recent decision…

Never seen that one before. Weird.

Since you’re already using WTK1.0.4 have you tried just using KToolbar to create a project, dump your source tree into the directory it creates and doing the compile there?

I’ve had problems in the past with IDEs that use an alternative compiler to the one in the JDK sometimes producing incorrect bytecode. Case in point – JDevelopers ‘fastjavac’.

Yes, it is weird…i completely deleted all version of my JDKs, WTKs and IDEs and reinstalled, and now it does work…go figure…

On a related note, know of a good free J2ME IDE? Sun did a microsoft on me and made S1 5 a pay product that lacks ME support…and S1 4 ME is nowhere to be found…

Yes it seems they’ve terminated the community edition. How thoughtful of them. And as bad luck would have it, I think they only took it offline in the last few days. Isn’t Sun wonderful! >:(

I’m not sure what the filename for SunONE Studio4 ME was, but for Forte4 Mobile Edition (Win32) it was “ffj_me_win32.exe” and the filesize was 23,878,852 bytes. Having just done a quick search, I’ve located a copy here: http://www.yashka.dp.ua/download/SLIK/SDK/

There wasn’t much difference between S1 4 ME and Forte4 ME. Although the S1 version had a few less bugs.

I was also a bit shocked at the disappearance of the Sun ONE free IDE!! It looks like Netbeans is carrying on an open source version, but a J2ME module is still in development:
http://java.netbeans.org/Proposals/Profiles/profiles.html

or you could try Eclipse (www.eclipse.org) … it’s an ace IDE, fast with built-in refactoring support, but i don’t know how well it integrates with J2ME…

In fact Eclipse don’t integrate J2ME support. What I do is using Ant and Antenna to bypass this limitation. antenna.sourceforge.net, and It work quit well.
Or use WebSphere Studio Device Developer, based on Eclipse.

as far as i can tell 5 doesnt even have ME support,

yes, sun one studio 5 has j2me support, you just have to update the ide with the j2me modules (kjava.nbm)
using the update center tool.

and even if it did, it’s not free…

well, you can use the 2-month trial…