Error preverifying class NetBeans 6.8 using lwuit api

Posted by Santiago on Stack Overflow See other posts from Stack Overflow or by Santiago
Published on 2010-04-05T12:41:52Z Indexed on 2010/04/05 12:43 UTC
Read the original article Hit count: 684

Filed under:
|
|
|

I'm trying to develop a portable J2ME appli, but Netbeans do a class preverification of LWUIT library that uses optional APIs that some configurations don't have, so I get this error when I try to compile on a configuration without JRS-184 (M3G Optional API):

Error preverifying class com.sun.lwuit.animations.Transition3D VERIFIER ERROR com/sun/lwuit/animations/Transition3D.initTransition()V: Cannot find class javax/microedition/m3g/Node

I don't want to remove the classes from the LWUIT API because that classes works on other configurations compatibles with JRS-184

What I want is that NetBeans do not preverify the library, It is posible?

Here are some code:

//#ifdef JSR184
//# import com.sun.lwuit.animations.Transition3D;
//#else
import com.sun.lwuit.animations.CommonTransitions;
//#endif

        Transition out;
//#ifdef JSR184
//#         out = Transition3D.createRotation(500, true);
//#else
        out = CommonTransitions.createSlide(CommonTransitions.SLIDE_HORIZONTAL, true, 500);
//#endif
        setTransitionOutAnimator(out);

Thanks

© Stack Overflow or respective owner

Related posts about preverify

Related posts about netbeans6.8