0 Replies Latest reply: Jan 6, 2012 6:58 AM by 909390 RSS

    Error preverifying class com.sun.lwuit.impl.midp.SVGImplementation$Handler

    909390
      Am new to JAVA, I am getting this error message when I try to run the app. Am using JAVA ME SDK.

      Error preverifying class com.sun.lwuit.impl.midp.SVGImplementation$Handler
      java/lang/NoClassDefFoundError: javax/microedition/m2g/ExternalResourceHandler
      C:\Users\Mike\Documents\NetBeansProjects\AwsomeApplicatio\nbproject\build-impl.xml:483: Preverification failed with error code 1.

      It then opens a page to this line in: build-impl.xml

      <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}"/>

      It doesn't flag up for any errors in the code, I have had it run a couple of times, but now it comes up with the above.

      This is the code I have put in:

      /*
      * To change this template, choose Tools | Templates
      * and open the template in the editor.
      */
      package Awsome;

      import javax.microedition.midlet.*;

      import com.sun.lwuit.*;
      import com.sun.lwuit.events.*;
      /**
      * @author Mike
      */
      public class SwooshMIDlet extends MIDlet {
      public void startApp() {
      Display.init(this);

      Form f = new Form("Hello, Intrepid Programmer!"); //Text to be displayed
      f.show(); //Shows form on screen

      Label label = new Label("WHAT!"); //Text in label
      f.addComponent(label); //Shows label on screen

      Button button = new Button("Say Again");
      f.addComponent(button);
      }

      public void pauseApp() {}

      public void destroyApp(boolean unconditional) {}

      public void actionPerformed(ActionEvent ae) {
      notifyDestroyed(); //This is needed to make it run & show on screen**
      }
      }

      It is set to run on:
      Platform Type: CLDC/MIDP
      Emulator Type: CLDC Oracle Java(TM) Platform Micro Edition SDK 3.0
      Device: DefaultCldcMsaPhone1
      Configuration: CLDC-1.1 // Profile: MIDP-2.0

      Any help or answers much appreciated

      Thanks

      PS, Ihave run it with out the code and get the same response

      Edited by: 906387 on 06-Jan-2012 04:57