Discussion Board

Results 1 to 2 of 2

Thread: [moved] LWUIT

  1. #1
    Registered User
    Join Date
    Feb 2010

    [moved] LWUIT

    hey ppl m using lwuit for the first time and i have some how added this library to the resource of my project but there is a trouble shoot while "clean and built" during compiling there is no error m sending code along with the rrouble shoot!!!! pls help me guyz to solve this rouble shoot!!

    import com.sun.lwuit.Form;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import com.sun.lwuit.TabbedPane;

    public class Try extends MIDlet implements CommandListener {
    private com.sun.lwuit.Display display;
    private com.sun.lwuit.Form form;
    public com.sun.lwuit.TabbedPane tp;
    public Try ()

    form = new Form("From");
    tp = new TabbedPane();

    public void startApp() {

    public void pauseApp() {

    public void destroyApp(boolean unconditional) {

    public void commandAction(Command c, Displayable d) {



    Created dir: C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\MobileApplication5\build\preverifysrc
    Copying 155 files to C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\MobileApplication5\build\preverifysrc
    Created dir: C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\MobileApplication5\build\preverified
    Preverifying 155 file(s) into C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\MobileApplication5\build\preverified directory.
    Error preverifying class com.sun.lwuit.impl.midp.SVGImplementation$Handler
    java/lang/NoClassDefFoundError: javax/microedition/m2g/ExternalResourceHandler

    C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\MobileApplication5\nbproject\build-impl.xml:461: Preverification failed with error code 1.
    BUILD FAILED (total time: 2 seconds)


    <nb-preverify srcdir="${preverify.sources.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}:${extra.classpath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>
    Last edited by bonjovi4u; 2010-02-22 at 07:30.

  2. #2
    Regular Contributor
    Join Date
    Dec 2008

    Re: [moved] LWUIT

    Try going to properties -> platform, and mark all the checkboxes there. Check if the "MOBILE 2D Graphics" is checked. I had the same error, after i checked them it worked well.

Similar Threads

  1. Jar size caused by Kxml and LWUIT
    By bumble-bee in forum Mobile Java General
    Replies: 6
    Last Post: 2009-11-21, 10:09
  2. lwuit and j2me
    By Arunesh in forum Mobile Java General
    Replies: 16
    Last Post: 2009-09-12, 15:49
  3. [moved] Help on LWUIT theme
    By poojs in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-08, 19:59
  4. lwuit
    By mahesh_aquarius in forum Mobile Java General
    Replies: 8
    Last Post: 2009-02-20, 13:03
  5. LWUIT jar size
    By HasithaRandika in forum Mobile Java General
    Replies: 10
    Last Post: 2009-02-18, 11:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts