preverification error: Cannot find class com/sun/perseus/model/Viewport

Hi all,

I have a (previously) working Midlet to which I have added one line as follows:

SVGImage image = (SVGImage)SVGImage.createEmptyImage(null);

- and imported the necessary from javax.microedition.m2g. (I am using the library that comes with the WTK, jsr226.jar).

This builds, jars, obfuscates fine. But when I try to preverify (using Antenna's wtkpreverify) on the jar, it gives up in disgust very swiftly as follows:

[wtkpreverify] Error preverifying class javax.microedition.m2g.ScalableGraphics

[wtkpreverify] VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IILjavax/microedition/m2g/ScalableImage;)V:

[wtkpreverify] Cannot find class com/sun/perseus/model/Viewport

I'm using the WTK2.5.1ea and antenna 0.9.14, CLDC1.1, MIDP2.0...

Many thanks for any ideas.

[843 byte] By [johndoea] at [2007-11-27 5:00:38]
# 1
Problem resolved simply by replacing jsr226.jar (as distributed with WTK2.5.1ea) with m2g.jar (as distributed with J2MEPolish).
johndoea at 2007-7-12 10:17:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...